6 ms·
Eglot 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 eg
by gnuvince 3y ago
Eglot 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..
- 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
- legends2k 3y agoThat'd increase the package disk footprint by a large value since there are many languages supported by Emacs by default.