This commit is contained in:
Zam Kokott
2025-10-06 09:31:42 +02:00
parent e448805566
commit abcbc64373
5 changed files with 12 additions and 73 deletions

View File

@@ -16,18 +16,11 @@ return {
ensure_installed = {
"lua_ls",
"gopls",
"rust_analyzer",
"html",
"zls",
"pyright",
"ols",
"clangd",
"omnisharp",
"yamlls",
"svelte",
"templ",
"vtsls",
"vue_ls",
"ansiblels",
},
handlers = {
function(server_name)
@@ -49,15 +42,6 @@ return {
}
})
local lspconfig = require("lspconfig")
lspconfig.gleam.setup({
capabilities = capabilities,
handlers = handlers,
cmd = { "gleam", "lsp" },
root_dir = lspconfig.util.root_pattern("gleam.toml", ".git"),
filetypes = { "gleam" },
})
vim.keymap.set("n", "K", vim.lsp.buf.hover, {})
vim.keymap.set("n", "gd", vim.lsp.buf.definition, {})
vim.keymap.set({ "n", "v" }, "<leader>ca", vim.lsp.buf.code_action, {})