diff options
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/init.vim | 1 | ||||
-rw-r--r-- | .config/nvim/plug-config/vim-lsp.vim | 14 | ||||
-rw-r--r-- | .config/nvim/plug.vim | 2 | ||||
-rw-r--r-- | .config/nvim/settings.vim | 2 |
4 files changed, 18 insertions, 1 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index e810fe3..2315854 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -20,6 +20,7 @@ source /home/jozan/.config/nvim/bindings.vim source /home/jozan/.config/nvim/sidebars.vim source /home/jozan/.config/nvim/langs.vim source /home/jozan/.config/nvim/plug-config/airline.vim +source /home/jozan/.config/nvim/plug-config/vim-lsp.vim " source /home/jozan/.config/nvim/plug-config/coc.vim source /home/jozan/.config/nvim/plug-config/floaterm.vim source /home/jozan/.config/nvim/plug-config/nerd-commenter.vim diff --git a/.config/nvim/plug-config/vim-lsp.vim b/.config/nvim/plug-config/vim-lsp.vim new file mode 100644 index 0000000..f416557 --- /dev/null +++ b/.config/nvim/plug-config/vim-lsp.vim @@ -0,0 +1,14 @@ +if executable('clangd') + augroup lsp_clangd + autocmd! + autocmd User lsp_setup call lsp#register_server({ + \ 'name': 'clangd', + \ 'cmd': {server_info->['clangd']}, + \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp'], + \ }) + autocmd FileType c setlocal omnifunc=lsp#complete + autocmd FileType cpp setlocal omnifunc=lsp#complete + autocmd FileType objc setlocal omnifunc=lsp#complete + autocmd FileType objcpp setlocal omnifunc=lsp#complete + augroup end +endif diff --git a/.config/nvim/plug.vim b/.config/nvim/plug.vim index 4c79aaa..cd22be7 100644 --- a/.config/nvim/plug.vim +++ b/.config/nvim/plug.vim @@ -18,6 +18,8 @@ Plug 'mhinz/vim-startify' Plug 'morhetz/gruvbox' " Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'paretje/nvim-man' +Plug 'prabirshrestha/async.vim' +Plug 'prabirshrestha/vim-lsp' Plug 'preservim/tagbar' Plug 'preservim/nerdcommenter' Plug 'preservim/nerdtree' diff --git a/.config/nvim/settings.vim b/.config/nvim/settings.vim index 71fb2da..160aee9 100644 --- a/.config/nvim/settings.vim +++ b/.config/nvim/settings.vim @@ -2,7 +2,7 @@ set noautochdir set bg=dark set cindent set cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l1,b0,gs,h0,N0,E0,p0,t0,i0,+s -set cinoptions+=c1,C0,/0,(s,us,U0,w0,Ws,k0,m1,M0,)20,*70,#0 +set cinoptions+=c1,C0,/0,(s,us,U0,w0,Ws,k0,m0,M1,)20,*70,#0 set clipboard^=unnamedplus set cursorline set encoding=utf-8 |