vim: Add TOML config

This commit is contained in:
2021-11-18 12:10:46 +01:00
parent 2a9a66fb06
commit f7d448f63b

View File

@@ -71,6 +71,8 @@ Plug 'evanleck/vim-svelte', {'branch': 'main'}
Plug 'evanleck/vim-svelte', {'branch': 'main'} Plug 'evanleck/vim-svelte', {'branch': 'main'}
Plug 'cespare/vim-toml', { 'branch': 'main' }
call plug#end() call plug#end()
filetype plugin indent on filetype plugin indent on
@@ -318,6 +320,7 @@ endfunction
autocmd BufWritePre * :call DeleteTrailingWS() autocmd BufWritePre * :call DeleteTrailingWS()
autocmd FileType yaml set shiftwidth=2 autocmd FileType yaml set shiftwidth=2
autocmd FileType toml set shiftwidth=2
set completeopt-=preview set completeopt-=preview
let g:ycm_add_preview_to_completeopt = 0 let g:ycm_add_preview_to_completeopt = 0