mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-11-02 13:36:03 +00:00
Refactor LSP config into separate modules
This commit is contained in:
5
.config/nvim/lsp/expert.lua
Normal file
5
.config/nvim/lsp/expert.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { 'expert' },
|
||||
root_markers = { 'mix.exs', '.git' },
|
||||
filetypes = { 'elixir', 'eelixir', 'heex' },
|
||||
}
|
||||
14
.config/nvim/lsp/gopls.lua
Normal file
14
.config/nvim/lsp/gopls.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
}
|
||||
13
.config/nvim/lsp/lua_ls.lua
Normal file
13
.config/nvim/lsp/lua_ls.lua
Normal 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 },
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user