update
This commit is contained in:
@@ -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, {})
|
||||
|
||||
Reference in New Issue
Block a user