Refactor LSP config into separate modules

This commit is contained in:
Fabian Becker
2025-09-26 16:07:46 +02:00
parent bb9e97a6ba
commit cb7e7a5ea4
9 changed files with 88 additions and 120 deletions

View File

@@ -0,0 +1,5 @@
return {
cmd = { 'expert' },
root_markers = { 'mix.exs', '.git' },
filetypes = { 'elixir', 'eelixir', 'heex' },
}

View File

@@ -0,0 +1,14 @@
return {
cmd = { "gopls" },
filetypes = { "go", "gomod", "gowork", "gotmpl" },
root_markers = { "go.work", "go.mod", ".git" },
settings = {
gopls = {
analyses = {
unusedparams = true,
shadow = true,
},
staticcheck = true,
},
},
}

View File

@@ -0,0 +1,13 @@
return {
settings = {
Lua = {
runtime = { version = "LuaJIT" },
diagnostics = { globals = { "vim" } },
workspace = {
library = vim.api.nvim_get_runtime_file("", true),
checkThirdParty = false,
},
telemetry = { enable = false },
},
},
}