summaryrefslogtreecommitdiffstats
path: root/.config/nvim/plug-config
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
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 '')
-rw-r--r--.config/nvim/plug-config/asyncomplete.vim11
-rw-r--r--.config/nvim/plug-config/signify.vim1
-rw-r--r--.config/nvim/plug-config/vim-lsp.vim6
3 files changed, 16 insertions, 2 deletions
diff --git a/.config/nvim/plug-config/asyncomplete.vim b/.config/nvim/plug-config/asyncomplete.vim
new file mode 100644
index 0000000..60c9cf1
--- /dev/null
+++ b/.config/nvim/plug-config/asyncomplete.vim
@@ -0,0 +1,11 @@
+autocmd User asyncomplete_setup call asyncomplete#register_source(
+ \ asyncomplete#sources#clang#get_source_options({
+ \ 'config': {
+ \ 'clang_path': '/usr/bin/cc',
+ \ 'clang_args': {
+ \ 'default': ['-I/usr/include'],
+ \ 'c': ['-std=c89', '-I/usr/include'],
+ \ 'cpp': ['-std=c++98', '-I/usr/include']
+ \ }
+ \ }
+ \ }))
diff --git a/.config/nvim/plug-config/signify.vim b/.config/nvim/plug-config/signify.vim
new file mode 100644
index 0000000..7243fbe
--- /dev/null
+++ b/.config/nvim/plug-config/signify.vim
@@ -0,0 +1 @@
+let g:signify_priority = 9
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