VL
Size: a a a
VL
VL
AZ
VL
VK
VL
DK
VL
DK
VL
DK
SS
elseif s:lsp_client=='vim-lsc'
" vim-lsc related configuration [[[
packadd vim-lsc
if s:lsp_server=='ccls'
" ccls [[[
packadd vim-ccls
if executable('ccls')
let s:ccls_conf = {
\ 'command': 'ccls',
\ 'suppress_stderr': v:true,
\ 'message_hooks': {
\ 'initialize': {
\ 'initializationOptions': {
\ 'cache': {'directory': ‘/home/user/.cache/vim/ccls'},
\ 'clang': {
\ 'extraArgs': [
\ ]
\ },
\ },
\ 'rootUri': {m, p -> lsc#uri#documentUri(fnamemodify(findfile('compile_commands.json', expand('%:p') . ';'), ':p:h'))}
\ },
\ },
\}
let g:lsc_server_commands = {
\ 'c': s:ccls_conf,
\ 'cpp': s:ccls_conf,
\ 'objc': s:ccls_conf,
\ 'objcpp': s:ccls_conf,
\}
" For VimCompletesMe
let g:lsc_auto_map = {'defaults': v:true, 'Completion': 'omnifunc', }
" let g:lsc_auto_map = v:true
let g:lsc_enable_autocomplete = v:true
let g:lsc_enable_diagnostics = v:false
endif
" ]]]
elseif s:lsp_server=='clangd'
NG
\U и \L, но всё не догадывался, для чего их можно было бы применить.NG
~ или в режиме визуального блока через U или uVL
elseif s:lsp_client=='vim-lsc'
" vim-lsc related configuration [[[
packadd vim-lsc
if s:lsp_server=='ccls'
" ccls [[[
packadd vim-ccls
if executable('ccls')
let s:ccls_conf = {
\ 'command': 'ccls',
\ 'suppress_stderr': v:true,
\ 'message_hooks': {
\ 'initialize': {
\ 'initializationOptions': {
\ 'cache': {'directory': ‘/home/user/.cache/vim/ccls'},
\ 'clang': {
\ 'extraArgs': [
\ ]
\ },
\ },
\ 'rootUri': {m, p -> lsc#uri#documentUri(fnamemodify(findfile('compile_commands.json', expand('%:p') . ';'), ':p:h'))}
\ },
\ },
\}
let g:lsc_server_commands = {
\ 'c': s:ccls_conf,
\ 'cpp': s:ccls_conf,
\ 'objc': s:ccls_conf,
\ 'objcpp': s:ccls_conf,
\}
" For VimCompletesMe
let g:lsc_auto_map = {'defaults': v:true, 'Completion': 'omnifunc', }
" let g:lsc_auto_map = v:true
let g:lsc_enable_autocomplete = v:true
let g:lsc_enable_diagnostics = v:false
endif
" ]]]
elseif s:lsp_server=='clangd'
f
f
VL
f