New answers tagged

2 votes
Accepted

How to list a source file's "structure" (e.g. list all the methods) with eglot/lsp?

Emacs has a built–in feature called Imenu that lets you easily jump to any definition in the current file (or project) by name. Any major mode can populate this menu, and therefore most do. Type M-g i ...
db48x's user avatar
  • 16.1k
3 votes
Accepted

How does emacs/eglot decide which syntax element to highlight and how could I change it?

Every buffer has one "major mode" which determines what Emacs will do to best support editing that particular language. See chapter 24.1 Major Modes in the Emacs manual for more information. ...
db48x's user avatar
  • 16.1k
0 votes
Accepted

lsp-mode can't register custom lsp client using with-eval-after-load

Moving the logic to a solidity-mode-hook and requiring lsp-mode inside the hook fixed things. I also added a notification handler to ignore an event that lsp-mode doesn't recognize and hence causes ...
degen872's user avatar
1 vote
Accepted

Can someone help me with lsp C++20 features recognition?

This is not really a question about Emacs, but about clangd. The whole point of LSP, or the Language Server Protocol, is that it is a standard protocol editors can use to talk to Language Servers like ...
db48x's user avatar
  • 16.1k

Top 50 recent answers are included