3 ms·
Does intellisense like autocomplete now work out of the box? Is company bundled in, as of recent versions? Is there any dependency on Clang to get it working fo
by billfruit 3y ago
Does intellisense like autocomplete now work out of the box? Is company bundled in, as of recent versions? Is there any dependency on Clang to get it working for C/C++ code?
- yissp 3y agoYou still need to set up an LSP server, so not exactly out-of-the-box. Something like clangd or ccls for C/C++.
- gnuvince 3y agoEglot is the built-in LSP client. You need an external server. If you do C or C++, clangd is likely what you want. Install it (apt install clangd) and enable eglot for C or C++ files in your Emacs config, (add-hook 'c-mode-hook 'eglot-ensure).
- billfruit 3y agoAnd if you are in a legacy system with no clang then? Emacs is usually batteries included, couldn't an lsp server have been part of the package..
- legends2k 3y agoThat'd increase the package disk footprint by a large value since there are many languages supported by Emacs by default.
- trealira 3y agoThen it would just have a dependency on Clang, and you couldn't use Emacs at all (since you can't use Clang). AFAIK, the only alternative to the clangd language server is ccls: https://github.com/MaskRay/ccls https://github.com/MaskRay/ccls