diff options
Diffstat (limited to '')
| -rw-r--r-- | autoload/dart.vim | 9 | ||||
| -rw-r--r-- | autoload/fish.vim | 9 | ||||
| -rw-r--r-- | autoload/xml/html5.vim | 2 | 
3 files changed, 15 insertions, 5 deletions
| diff --git a/autoload/dart.vim b/autoload/dart.vim index 76013172..2ff55cb6 100644 --- a/autoload/dart.vim +++ b/autoload/dart.vim @@ -152,4 +152,13 @@ function! s:DotPackagesFile() abort    return [v:false, '']  endfunction +" Prevent writes to files in the pub cache. +function! dart#setModifiable() abort +  let full_path = expand('%:p') +  if full_path =~# '.pub-cache' || +      \ full_path =~# 'Pub\Cache' +    setlocal nomodifiable +  endif +endfunction +  endif diff --git a/autoload/fish.vim b/autoload/fish.vim index ac422a42..d4e63cdc 100644 --- a/autoload/fish.vim +++ b/autoload/fish.vim @@ -1,6 +1,7 @@  if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1  function! fish#Indent() +    let l:shiftwidth = shiftwidth()      let l:prevlnum = prevnonblank(v:lnum - 1)      if l:prevlnum ==# 0          return 0 @@ -8,15 +9,15 @@ function! fish#Indent()      let l:indent = 0      let l:prevline = getline(l:prevlnum)      if l:prevline =~# '\v^\s*switch>' -        let l:indent = &shiftwidth * 2 +        let l:indent = l:shiftwidth * 2      elseif l:prevline =~# '\v^\s*%(begin|if|else|while|for|function|case)>' -        let l:indent = &shiftwidth +        let l:indent = l:shiftwidth      endif      let l:line = getline(v:lnum)      if l:line =~# '\v^\s*end>' -        return indent(v:lnum) - (l:indent ==# 0 ? &shiftwidth : l:indent) +        return indent(v:lnum) - (l:indent ==# 0 ? l:shiftwidth : l:indent)      elseif l:line =~# '\v^\s*%(case|else)>' -        return indent(v:lnum) - &shiftwidth +        return indent(v:lnum) - l:shiftwidth      endif      return indent(l:prevlnum) + l:indent  endfunction diff --git a/autoload/xml/html5.vim b/autoload/xml/html5.vim index 4123dbe0..f3d0e9df 100644 --- a/autoload/xml/html5.vim +++ b/autoload/xml/html5.vim @@ -583,7 +583,7 @@ let g:xmldata_html5 = {  \ ],  \ 'img': [      \ [], -    \ extend(copy(global_attributes), {'src': [], 'alt': [], 'height': [], 'width': [], 'usemap': [], 'ismap': ['ismap', ''], 'referrerpolicy': ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'unsafe-url'], 'crossorigin': ['anonymous', 'use-credentials']}) +    \ extend(copy(global_attributes), {'src': [], 'alt': [], 'height': [], 'width': [], 'decoding': ['async', 'sync', 'auto'], 'usemap': [], 'ismap': ['ismap', ''], 'referrerpolicy': ['no-referrer', 'no-referrer-when-downgrade', 'origin', 'origin-when-cross-origin', 'unsafe-url'], 'crossorigin': ['anonymous', 'use-credentials']})  \ ],  \ 'input': [      \ [], | 
