mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
feat(terraform): include dash in iskeyword
This commit is contained in:
@@ -9,6 +9,16 @@ if exists('b:did_ftplugin') || v:version < 700 || &compatible
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !has('patch-7.4.1142')
|
||||||
|
" Include hyphens as keyword characters so that:
|
||||||
|
" 1. a keyword appearing as part of a longer name doesn't get partially
|
||||||
|
" highlighted.
|
||||||
|
" 2. Goto local declaration works correctly (see `:h gd`)
|
||||||
|
" 3. Tag navigation works correctly (see `:h i_CTRL-X_CTRL-]`)
|
||||||
|
setlocal iskeyword+=-
|
||||||
|
let b:undo_ftplugin .= ' iskeyword<'
|
||||||
|
endif
|
||||||
|
|
||||||
" Have only kept the terraform versions of these options for backwards
|
" Have only kept the terraform versions of these options for backwards
|
||||||
" compatibility.
|
" compatibility.
|
||||||
if get(g:, 'terraform_fold_sections', 0)
|
if get(g:, 'terraform_fold_sections', 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user