summaryrefslogtreecommitdiffstats
path: root/ftplugin/puppet.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-09-09 12:05:33 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2021-09-09 12:05:33 +0200
commit7f98e949d4922ba2109304bd4cabe9578a8062fb (patch)
treee1b08f862397c14ab799e8f277c6fc39ec48b3b6 /ftplugin/puppet.vim
parentce31cd1d2f4e8eee9fd91325e4599f15cb9566fd (diff)
downloadvim-polyglot-7f98e949d4922ba2109304bd4cabe9578a8062fb.tar.gz
vim-polyglot-7f98e949d4922ba2109304bd4cabe9578a8062fb.zip
Update
Diffstat (limited to '')
-rw-r--r--ftplugin/puppet.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/ftplugin/puppet.vim b/ftplugin/puppet.vim
index 5316cf5e..a57fe491 100644
--- a/ftplugin/puppet.vim
+++ b/ftplugin/puppet.vim
@@ -18,9 +18,11 @@ setlocal softtabstop=2
setlocal shiftwidth=2
setlocal expandtab
setlocal keywordprg=puppet\ describe\ --providers
-setlocal iskeyword=:,@,48-57,_,192-255
setlocal comments=sr:/*,mb:*,ex:*/,b:#
setlocal commentstring=#\ %s
+" adding : to iskeyword is tempting in order to make word movements skip over a
+" full resource name, however since : is used in many non-keyword contexts it
+" is a bad idea to add it to the option.
setlocal formatoptions-=t formatoptions+=croql
setlocal formatexpr=puppet#format#Format()