diff --git a/init.vim b/init.vim index 863cec1..4dedb77 100644 --- a/init.vim +++ b/init.vim @@ -72,6 +72,7 @@ Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'neoclide/coc.nvim', { 'branch': 'release' } Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' +Plug 'kchmck/vim-coffee-script' call plug#end() "************************** @@ -94,4 +95,11 @@ nmap gi (coc-implementation) nmap gr (coc-references) nmap rn (coc-rename) +"************************** +" Languages + +" Go autocmd BufWritePre *.go :silent call CocAction('runCommand', 'editor.action.organizeImport') + +" C/C++ +autocmd BufWritePre *.h,*.hpp,*.c,*.cpp :call FormatBuffer()