3 ms·
I do this all the time. You want the Vim plugin YouCompleteMe[1]. It integrates with clang and gives you real-time C++ code completion and linting, plus a seman
by jmcphers 11y ago
I do this all the time. You want the Vim plugin YouCompleteMe[1]. It integrates with clang and gives you real-time C++ code completion and linting, plus a semantic jump-to-definition that outdoes ctags for most symbols (though it doesn't go outside the translation unit so ctags is still useful for finding implementations).
[1] https://github.com/Valloric/YouCompleteMe https://github.com/Valloric/YouCompleteMe
- alttab 11y agoRock on - I can't imagine how a browser would ever come close.
- netheril96 11y agoA browser probably cannot do that much; but the server may.
- alttab 11y agoNot from a responsiveness / performance standpoint. No way.
- nickysielicki 11y agoIn my opinion, neocomplete / deoplete are far better than YCM if you can be bothered to configure it. My nvim init.vim is here: https://github.com/sielickin/dotfiles_nvim/blob/master/.config/nvim/init.vim https://github.com/sielickin/dotfiles_nvim/blob/master/.conf...
- Nr7 11y agoAre there any major issues with deoplete? The readme says it's not ready for production.
- nickysielicki 11y agoI have been using it for 1.5 months with zero issues. I recommend it if you're using neocomplete, the configuration is nearly exactly the same so switching to it and then back again is not a hassle. Make sure you call :UpdateRemotePlugins
- Nr7 11y agoThanks. I use YCM currently, but I've been curious about other options. I'll have to try deoplete.
- bobajeff 11y agoYes I've tried YCM some time ago and decided it didn't work acceptable for me. It didn't find all the candidates for autocompletion and wouldn't work if there were any compile time errors. Anyways, autocompletion and jump-to-definition weren't all I was missing. Smart syntax highlighting that could deemphasize macro blocks (eg. #ifdef) that would evaluate to false for the project is some thing could not find a plugin for.