4 ms·
You don't actually need NPM and CoC. I've been using pure-VimL vim-lsc[1] for a couple of years, and it's been serving me well. My config: let g:lsc_auto_m
by ainar-g 6y ago
You don't actually need NPM and CoC. I've been using pure-VimL
vim-lsc[1] for a couple of years, and it's been serving me well. My
config:
let g:lsc_auto_map = {'Completion': 'omnifunc'}
let g:lsc_enable_autocomplete = v:false
let g:lsc_server_commands = {
\ 'c': {
\ 'command': 'clangd',
\ 'log_level': -1,
\ 'suppress_stderr': v:true,
\ },
\ 'cpp': {
\ 'command': 'clangd',
\ 'log_level': -1,
\ 'suppress_stderr': v:true,
\ },
\}
This gives me code completion and other niceness.
With Vim 8.1, you don't even need a package manager, since there is one
built in. Just clone the Git repo into your
~/.vim/pack/vim-lsc/start/vim-lsc/.
[1] https://github.com/natebosch/vim-lsc https://github.com/natebosch/vim-lsc