refac(prog/nvim): use short version for autocmd
... and augroup
This commit is contained in:
parent
d10e4c4cf9
commit
6a4888e3f5
1 changed files with 15 additions and 15 deletions
|
@ -29,17 +29,17 @@ nnoremap <leader>sv :source $MYVIMRC<cr>
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Markdown file settings {{{
|
" Markdown file settings {{{
|
||||||
augroup filetype_md
|
aug filetype_md
|
||||||
autocmd!
|
au!
|
||||||
autocmd FileType markdown iabbrev @@ dmitriy@ideascup.me
|
au FileType markdown iabbrev @@ dmitriy@ideascup.me
|
||||||
augroup END
|
aug END
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Vimscript file settings {{{
|
" Vimscript file settings {{{
|
||||||
augroup filetype_vim
|
aug filetype_vim
|
||||||
autocmd!
|
au!
|
||||||
autocmd FileType vim setlocal foldmethod=marker foldcolumn=1 foldlevelstart=0
|
au FileType vim setlocal foldmethod=marker foldcolumn=1 foldlevelstart=0
|
||||||
augroup END
|
aug END
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Plugins {{{
|
" Plugins {{{
|
||||||
|
@ -74,10 +74,10 @@ let g:sql_type_default = 'pgsql'
|
||||||
|
|
||||||
" Plugin: NeoFormat {{{
|
" Plugin: NeoFormat {{{
|
||||||
let g:neoformat_try_node_exe = 1
|
let g:neoformat_try_node_exe = 1
|
||||||
augroup fmt
|
aug fmt
|
||||||
autocmd!
|
au!
|
||||||
autocmd BufWritePre javascript,typescript,rust undojoin | Neoformat
|
au BufWritePre javascript,typescript,rust undojoin | Neoformat
|
||||||
augroup END
|
aug END
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Plugin: NerdTree {{{
|
" Plugin: NerdTree {{{
|
||||||
|
@ -126,11 +126,11 @@ function! s:on_lsp_buffer_enabled() abort
|
||||||
" refer to doc to add more commands
|
" refer to doc to add more commands
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
augroup lsp_install
|
aug lsp_install
|
||||||
au!
|
au!
|
||||||
" call s:on_lsp_buffer_enabled only for languages that has the server registered.
|
" call s:on_lsp_buffer_enabled only for languages that has the server registered.
|
||||||
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
|
au User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
|
||||||
augroup END
|
aug END
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Theme {{{
|
" Theme {{{
|
||||||
|
|
Loading…
Reference in a new issue