summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-08-18 20:08:26 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-08-18 20:08:26 +0200
commitc6936aeeb1e0540328c3a0d3b932f0b0f48618fd (patch)
tree6e67a4b47142e58be572858112b17c37ae970cc5
parent6bb111eaba95b80c0e0dfd0bfb380bad19a45c77 (diff)
downloadvim-polyglot-c6936aeeb1e0540328c3a0d3b932f0b0f48618fd.tar.gz
vim-polyglot-c6936aeeb1e0540328c3a0d3b932f0b0f48618fd.zip
Fix dhall plugin, closes #519
-rw-r--r--README.md2
-rwxr-xr-xbuild2
-rw-r--r--ftplugin/dhall.vim18
3 files changed, 6 insertions, 16 deletions
diff --git a/README.md b/README.md
index 89778863..6fb81f3c 100644
--- a/README.md
+++ b/README.md
@@ -69,7 +69,7 @@ If you need full functionality of any plugin, please use it directly with your p
- [cucumber](https://github.com/tpope/vim-cucumber) (syntax, indent, compiler, ftplugin)
- [cue](https://github.com/mgrabovsky/vim-cuesheet) (syntax)
- [dart](https://github.com/dart-lang/dart-vim-plugin) (syntax, indent, autoload, ftplugin)
-- [dhall](https://github.com/vmchale/dhall-vim) (syntax, ftplugin)
+- [dhall](https://github.com/sheerun/dhall-vim) (syntax, ftplugin)
- [dlang](https://github.com/JesseKPhillips/d.vim) (syntax, indent)
- [dockerfile](https://github.com/ekalinin/Dockerfile.vim) (syntax, indent, ftplugin)
- [elixir](https://github.com/elixir-lang/vim-elixir) (syntax, indent, compiler, autoload, ftplugin)
diff --git a/build b/build
index 052b3a8a..dc0b98c1 100755
--- a/build
+++ b/build
@@ -163,7 +163,7 @@ PACKS="
cucumber:tpope/vim-cucumber
cue:mgrabovsky/vim-cuesheet
dart:dart-lang/dart-vim-plugin
- dhall:vmchale/dhall-vim
+ dhall:sheerun/dhall-vim
dlang:JesseKPhillips/d.vim
dockerfile:ekalinin/Dockerfile.vim
elixir:elixir-lang/vim-elixir
diff --git a/ftplugin/dhall.vim b/ftplugin/dhall.vim
index 34974cd5..1c524a78 100644
--- a/ftplugin/dhall.vim
+++ b/ftplugin/dhall.vim
@@ -9,13 +9,9 @@ setlocal commentstring=--\ %s
set smarttab
-autocmd! dhall
-
if exists('g:dhall_use_ctags')
if g:dhall_use_ctags == 1
- augroup dhall
- autocmd BufWritePost *.dhall silent !ctags -R .
- augroup END
+ autocmd BufWritePost *.dhall silent !ctags -R .
endif
endif
@@ -28,9 +24,7 @@ endfunction
if exists('g:dhall_strip_whitespace')
if g:dhall_strip_whitespace == 1
- augroup dhall
- au BufWritePre *.dhall silent! call StripTrailingWhitespace()
- augroup END
+ au BufWritePre *.dhall silent! call StripTrailingWhitespace()
endif
endif
@@ -44,14 +38,10 @@ endfunction
if exists('g:dhall_format')
if g:dhall_format == 1
- augroup dhall
- au BufWritePost *.dhall call DhallFormat()
- augroup END
+ au BufWritePost *.dhall call DhallFormat()
endif
endif
-augroup dhall
- au BufNewFile,BufRead *.dhall setl shiftwidth=2
-augroup END
+au BufNewFile,BufRead *.dhall setl shiftwidth=2
endif