For speed, I wish to disable everything that a language server (in this case clangd) provides *except* for code completion. I use eglot. How would I do this?

PS: No I don’t want to use lsp-bridge because I want my own custom completion style.

  • --_II_--@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Eglot has a feature that allows you to customize the capabilities of a server. You can use eglot-server-programs to do this. Just specify the server and capabilities you want in a cons cell, like (eglot-server-programs '((c++-mode . ("clangd" "--background-index" "--clang-tidy" "--completion-style=detailed")))). Here, the --completion-style=detailed is just an example, replace it with your custom completion style.