summaryrefslogtreecommitdiffstats
path: root/.config/nvim/plug-config/vim-lsp.vim
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-13 19:58:10 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-13 19:58:10 +0100
commit3a489c6ebaf8f080bf7e55c868059ed3802a924a (patch)
tree98e4bb3b9b3e6e33ebdc94b7f34181c215d8fd22 /.config/nvim/plug-config/vim-lsp.vim
parentNew lsp, coc sucks (diff)
downloaddotfiles-bsd-3a489c6ebaf8f080bf7e55c868059ed3802a924a.tar.gz
dotfiles-bsd-3a489c6ebaf8f080bf7e55c868059ed3802a924a.tar.bz2
dotfiles-bsd-3a489c6ebaf8f080bf7e55c868059ed3802a924a.tar.xz
dotfiles-bsd-3a489c6ebaf8f080bf7e55c868059ed3802a924a.tar.zst
dotfiles-bsd-3a489c6ebaf8f080bf7e55c868059ed3802a924a.zip
Perfect vim C/C++ config
Diffstat (limited to '.config/nvim/plug-config/vim-lsp.vim')
-rw-r--r--.config/nvim/plug-config/vim-lsp.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/.config/nvim/plug-config/vim-lsp.vim b/.config/nvim/plug-config/vim-lsp.vim
index f416557..4accf36 100644
--- a/.config/nvim/plug-config/vim-lsp.vim
+++ b/.config/nvim/plug-config/vim-lsp.vim
@@ -1,10 +1,10 @@
-if executable('clangd')
+if executable('/usr/local/llvm10/bin/clangd')
augroup lsp_clangd
autocmd!
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'clangd',
\ 'cmd': {server_info->['clangd']},
- \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp'],
+ \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp']
\ })
autocmd FileType c setlocal omnifunc=lsp#complete
autocmd FileType cpp setlocal omnifunc=lsp#complete
@@ -12,3 +12,5 @@ if executable('clangd')
autocmd FileType objcpp setlocal omnifunc=lsp#complete
augroup end
endif
+
+let g:lsp_signs_priority = 10