24 lines
481 B
VimL
24 lines
481 B
VimL
setlocal expandtab
|
|
setlocal shiftwidth=2
|
|
setlocal softtabstop=2
|
|
setlocal smartindent
|
|
|
|
let g:html_indent_script1 = "auto"
|
|
let g:html_indent_style1 = "auto"
|
|
|
|
if &completeopt =~# '.*noselect.*'
|
|
iabbrev </ </<C-X><C-O><C-N>
|
|
imap </<CR> </<C-X><C-O><C-N><CR>
|
|
imap ><CR> ><CR></<c-x><c-o><c-n><c-o><s-o>
|
|
else
|
|
iabbrev </ </<C-X><C-O>
|
|
endif
|
|
|
|
lua require'cmp'.setup.buffer {
|
|
\ sources = {
|
|
\ { name = 'nvim_lsp' },
|
|
\ { name = 'luasnip' },
|
|
\ { name = 'buffer' },
|
|
\ },
|
|
\ }
|