diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 15:55:58 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 15:55:58 +0200 |
commit | cdd6d73e39c85feccdcace5c32b375de7ba25bae (patch) | |
tree | 3412ef089b48d8eac72f817cc0f015c61d9529c1 | |
parent | a48874df4c2b0b8c4a7b45a165090b87a4969282 (diff) | |
download | vim-polyglot-cdd6d73e39c85feccdcace5c32b375de7ba25bae.tar.gz vim-polyglot-cdd6d73e39c85feccdcace5c32b375de7ba25bae.zip |
Switch fish provider, fixes #408
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | autoload/fish.vim | 6 | ||||
-rwxr-xr-x | build | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -76,7 +76,7 @@ If you need full functionality of any plugin, please use it directly with your p - [emblem](https://github.com/yalesov/vim-emblem) (syntax, indent, ftplugin) - [erlang](https://github.com/vim-erlang/vim-erlang-runtime) (syntax, indent) - [ferm](https://github.com/vim-scripts/ferm.vim) (syntax) -- [fish](https://github.com/dag/vim-fish) (syntax, indent, compiler, autoload, ftplugin) +- [fish](https://github.com/georgewitteman/vim-fish) (syntax, indent, compiler, autoload, ftplugin) - [flatbuffers](https://github.com/dcharbon/vim-flatbuffers) (syntax) - [fsharp](https://github.com/fsharp/vim-fsharp) (syntax, indent) - [git](https://github.com/tpope/vim-git) (syntax, indent, ftplugin) diff --git a/autoload/fish.vim b/autoload/fish.vim index eb826bb8..5b86736e 100644 --- a/autoload/fish.vim +++ b/autoload/fish.vim @@ -11,15 +11,15 @@ function! fish#Indent() let l:indent = 0 let l:prevline = getline(l:prevlnum) if l:prevline =~# '\v^\s*switch>' - let l:indent = l:shiftwidth * 2 + return indent(l:prevlnum) + l:shiftwidth elseif l:prevline =~# '\v^\s*%(begin|if|else|while|for|function|case)>' 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 ? l:shiftwidth : l:indent) + return indent(l:prevlnum) - (l:indent ==# 0 ? l:shiftwidth : l:indent) elseif l:line =~# '\v^\s*%(case|else)>' - return indent(v:lnum) - l:shiftwidth + return indent(l:prevlnum) - l:shiftwidth endif return indent(l:prevlnum) + l:indent endfunction @@ -186,7 +186,7 @@ PACKS=" emblem:yalesov/vim-emblem erlang:vim-erlang/vim-erlang-runtime ferm:vim-scripts/ferm.vim - fish:dag/vim-fish + fish:georgewitteman/vim-fish flatbuffers:dcharbon/vim-flatbuffers fsharp:fsharp/vim-fsharp:_BASIC git:tpope/vim-git |