diff options
author | Joe <rrbo@proton.me> | 2023-09-22 11:20:53 +0200 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-09-22 11:20:53 +0200 |
commit | e25677cbebfa2a9e4705de3d47610cd2026d0b56 (patch) | |
tree | 924f5cda37599a221acddaa868a8f224627f6eee /.config/nvim/plug-config/vim-lsp.vim | |
parent | up (diff) | |
download | dotfiles-bsd-e25677cbebfa2a9e4705de3d47610cd2026d0b56.tar.gz dotfiles-bsd-e25677cbebfa2a9e4705de3d47610cd2026d0b56.tar.bz2 dotfiles-bsd-e25677cbebfa2a9e4705de3d47610cd2026d0b56.tar.xz dotfiles-bsd-e25677cbebfa2a9e4705de3d47610cd2026d0b56.tar.zst dotfiles-bsd-e25677cbebfa2a9e4705de3d47610cd2026d0b56.zip |
up
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/plug-config/vim-lsp.vim | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/.config/nvim/plug-config/vim-lsp.vim b/.config/nvim/plug-config/vim-lsp.vim index fb0d055..5e5ca16 100644 --- a/.config/nvim/plug-config/vim-lsp.vim +++ b/.config/nvim/plug-config/vim-lsp.vim @@ -1,39 +1,39 @@ -if executable('ccls') - autocmd User lsp_setup call lsp#register_server({ - \ 'name': 'ccls', - \ 'cmd': {server_info->['ccls']}, - \ 'root_uri': {server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'compile_commands.json'))}, - \ 'initialization_options': { - \ 'highlight': { 'lsRanges' : v:true }, - \ }, - \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp', 'cc'], - \ }) - autocmd FileType c,cpp,objc,objcpp,cc setlocal omnifunc=lsp#complete -endif - -highlight LspCxxHlSymStruct ctermfg=Yellow guifg=Yellow -highlight LspCxxHlSymClass ctermfg=Yellow guifg=Yellow -highlight LspCxxHlSymField ctermfg=Blue guifg=Blue -highlight LspCxxHlSymParameter ctermfg=LightYellow guifg=LightYellow -highlight LspCxxHlSymVariableStatic ctermfg=LightRed guifg=LightRed -highlight LspErrorHighlight cterm=undercurl gui=undercurl ctermfg=DarkRed guifg=DarkRed -highlight LspWarningHighlight cterm=underline gui=underline ctermfg=DarkRed guifg=DarkRed -highlight LspInformationHighlight cterm=underline gui=underline ctermfg=Green guifg=Green -highlight LspHintHighlight term=italic cterm=italic gui=italic ctermfg=Green guifg=Green - -augroup LspGo - au! - autocmd User lsp_setup call lsp#register_server({ - \ 'name': 'go-lang', - \ 'cmd': {server_info->['gopls']}, - \ 'whitelist': ['go'], - \ }) - autocmd FileType go setlocal omnifunc=lsp#complete - "autocmd FileType go nmap <buffer> gd <plug>(lsp-definition) - "autocmd FileType go nmap <buffer> ,n <plug>(lsp-next-error) - "autocmd FileType go nmap <buffer> ,p <plug>(lsp-previous-error) -augroup END - -let g:lsp_signs_priority = 10 -let g:lsp_textprop_enabled = 1 -let g:lsp_cxx_hl_use_text_props = 1 +" if executable('ccls') +" autocmd User lsp_setup call lsp#register_server({ +" \ 'name': 'ccls', +" \ 'cmd': {server_info->['ccls']}, +" \ 'root_uri': {server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'compile_commands.json'))}, +" \ 'initialization_options': { +" \ 'highlight': { 'lsRanges' : v:true }, +" \ }, +" \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp', 'cc'], +" \ }) +" autocmd FileType c,cpp,objc,objcpp,cc setlocal omnifunc=lsp#complete +" endif +" +" highlight LspCxxHlSymStruct ctermfg=Yellow guifg=Yellow +" highlight LspCxxHlSymClass ctermfg=Yellow guifg=Yellow +" highlight LspCxxHlSymField ctermfg=Blue guifg=Blue +" highlight LspCxxHlSymParameter ctermfg=LightYellow guifg=LightYellow +" highlight LspCxxHlSymVariableStatic ctermfg=LightRed guifg=LightRed +" highlight LspErrorHighlight cterm=undercurl gui=undercurl ctermfg=DarkRed guifg=DarkRed +" highlight LspWarningHighlight cterm=underline gui=underline ctermfg=DarkRed guifg=DarkRed +" highlight LspInformationHighlight cterm=underline gui=underline ctermfg=Green guifg=Green +" highlight LspHintHighlight term=italic cterm=italic gui=italic ctermfg=Green guifg=Green +" +" augroup LspGo +" au! +" autocmd User lsp_setup call lsp#register_server({ +" \ 'name': 'go-lang', +" \ 'cmd': {server_info->['gopls']}, +" \ 'whitelist': ['go'], +" \ }) +" autocmd FileType go setlocal omnifunc=lsp#complete +" "autocmd FileType go nmap <buffer> gd <plug>(lsp-definition) +" "autocmd FileType go nmap <buffer> ,n <plug>(lsp-next-error) +" "autocmd FileType go nmap <buffer> ,p <plug>(lsp-previous-error) +" augroup END +" +" let g:lsp_signs_priority = 10 +" let g:lsp_textprop_enabled = 1 +" let g:lsp_cxx_hl_use_text_props = 1 |