feat: migrate LSP to opt-in native language servers

This commit is contained in:
Valdemar Lorenzen
2026-10-09 13:12:38 +02:00
parent 92679ecbe1
commit 30aa70672e
12 changed files with 2407 additions and 658 deletions
+5 -3
View File
@@ -13,9 +13,11 @@ Vamp.configure do |config|
config.bind "ctrl+h", config.core.left, mode: config.modes.tree
config.bind "ctrl+l", config.core.right, mode: config.modes.tree
config.plugin "plugins/greeting.rb"
# Optional LSP feature; install/configure a trusted language server first.
# config.plugin "plugins/lsp.rb", options: {
# servers: [{ language_id: "rust", extensions: ["rs"], command: ["rust-analyzer"] }]
# Native LSP is disabled by default; install a server and explicitly opt in.
# config.lsp["rust"] = true # built-in rust-analyzer preset
# config.lsp["my-language"] = {
# command: ["my-language-server", "--stdio"], extensions: ["myl"],
# initialization_options: {}, settings: {}
# }
# config.bind "leader d", "lsp_definition"
config.bind "g", "greet"