diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 15:44:43 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 15:44:43 +0200 |
commit | 664aa988f6d9cdb7b75218666fbe348c85ef8b29 (patch) | |
tree | 306173199576430e6133a1ed137bd80bbc2fb01b /ftplugin/terraform.vim | |
parent | 3ddca5da461ebfaa82104f82e3cbf19d1c326ade (diff) | |
download | vim-polyglot-664aa988f6d9cdb7b75218666fbe348c85ef8b29.tar.gz vim-polyglot-664aa988f6d9cdb7b75218666fbe348c85ef8b29.zip |
Update
Diffstat (limited to 'ftplugin/terraform.vim')
-rw-r--r-- | ftplugin/terraform.vim | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/ftplugin/terraform.vim b/ftplugin/terraform.vim index e8ed9fb3..9b4cc2bd 100644 --- a/ftplugin/terraform.vim +++ b/ftplugin/terraform.vim @@ -26,25 +26,14 @@ if !has('patch-7.4.1142') endif if get(g:, 'terraform_fold_sections', 0) - setlocal foldmethod=expr - setlocal foldexpr=terraform#folds() - setlocal foldlevel=1 - setlocal foldtext=terraform#foldText() - let b:undo_ftplugin .= ' foldmethod< foldexpr< foldlevel< foldtext<' + setlocal foldmethod=syntax + let b:undo_ftplugin .= ' foldmethod<' endif " Set the commentstring -let &l:commentstring = get(g:, 'terraform_commentstring', '#%s') +setlocal commentstring=#%s let b:undo_ftplugin .= ' commentstring<' -" Re-map the space bar to fold and unfold -if get(g:, 'terraform_remap_spacebar', 0) - nnoremap <buffer> <space> za - onoremap <buffer> <space> <C-C>za - vnoremap <buffer> <space> zf - let b:undo_ftplugin .= '|unmap <buffer> <space>' -endif - if get(g:, 'terraform_align', 0) && exists(':Tabularize') inoremap <buffer> <silent> = =<Esc>:call terraform#align()<CR>a let b:undo_ftplugin .= '|iunmap <buffer> =' |