LSP is an open protocol supported by many code editors (including Nvpunk) to provide language specific features, including:
Nvpunk preinstalls some language servers, to install more language servers, or to update the ones you have already installed, you can use the Mason package manager with the following command:
Or use the Mason Package Manager button in the greeter.
This will open up the Mason popup. From here you will be able to install, remove and update your language servers.
g? inside the Mason window to get an overview of its specific commands.
When a language server is available for your language, a set of LSP sepcific key maps will be enabled:
|Go to declaration|
|Go to definition|
|Go to references|
|Go to implementation|
|Information on the symbol under the cursor|
|Refactor → rename|
|Expand diagnostics under the cursor|
|Disable virtual text|
|Enable virtual text|