diff options
Diffstat (limited to '.config/nvim/plug-config')
-rw-r--r-- | .config/nvim/plug-config/asyncomplete.vim | 11 | ||||
-rw-r--r-- | .config/nvim/plug-config/signify.vim | 1 | ||||
-rw-r--r-- | .config/nvim/plug-config/vim-lsp.vim | 6 |
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 |