~gpanders/dotfiles

ref: 1e3d13c0aa34c1d87b518c19c66edcc975f7944d dotfiles/.vim/plugin/lsc.vim -rw-r--r-- 1.1 KiB
1e3d13c0Gregory Anders vim: add guards in vim-lsc configuration 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
let g:lsc_auto_map = {
            \   'defaults': v:true,
            \   'FindReferences': '<C-_>r',
            \   'NextReference': ']r',
            \   'PreviousReference': '[r',
            \   'FindImplementations': '<C-_>I',
            \   'DocumentSymbol': '<C-_>o',
            \   'WorkspaceSymbol': '<C-_>S',
            \   'FindCodeActions': '<C-_>a',
            \   'Rename': '<C-_>R',
            \   'SignatureHelp': '<C-_>m',
            \ }

let g:lsc_enable_diagnostics = v:false

" Configure LSP servers
let g:lsc_server_commands = {}

if executable('pyls')
    let g:lsc_server_commands.python = {'command': 'pyls', 'suppress_stderr': v:true}
endif

if executable('clangd')
    let g:lsc_server_commands.c = {'command': 'clangd', 'suppress_stderr': v:true}
    let g:lsc_server_commands.cpp = g:lsc_server_commands.c
endif

if executable('gopls')
    let g:lsc_server_commands.go = {'command': 'gopls serve', 'log_level': -1, 'suppress_stderr': v:true}
endif

if executable('rls')
    let g:lsc_server_commands.rust = {'command': 'rls', 'suppress_stderr': v:true}
endif