feat: switch to native 0.11 LSP, remove obsolete things
This commit is contained in:
parent
23fe78acec
commit
e2d27c98c1
24 changed files with 311 additions and 475 deletions
28
lsp/ansible.lua
Normal file
28
lsp/ansible.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---@type vim.lsp.Config
|
||||
--- https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/configs/ansiblels.lua
|
||||
--- https://github.com/neovim/nvim-lspconfig/pull/3659/files#diff-5ecad9b03732db4dfd97f3aa9874fa465b88ee4e121bf152e670f46e4f19cc6e
|
||||
return {
|
||||
cmd = { "ansible-language-server", "--stdio" },
|
||||
settings = {
|
||||
ansible = {
|
||||
python = {
|
||||
interpreterPath = "python",
|
||||
},
|
||||
ansible = {
|
||||
path = "ansible",
|
||||
},
|
||||
executionEnvironment = {
|
||||
enabled = false,
|
||||
},
|
||||
validation = {
|
||||
enabled = true,
|
||||
lint = {
|
||||
enabled = true,
|
||||
path = "ansible-lint",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
filetypes = { "yaml.ansible" },
|
||||
root_markers = { "ansible.cfg", ".ansible-lint" },
|
||||
}
|
||||
6
lsp/go.lua
Normal file
6
lsp/go.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { "gopls" },
|
||||
root_markers = { "go.work", "go.mod", ".git" },
|
||||
filetypes = { "go", "gomod", "gowork", "gotmpl" },
|
||||
}
|
||||
14
lsp/lua.lua
Normal file
14
lsp/lua.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { "lua-language-server" },
|
||||
filetypes = { "lua" },
|
||||
root_markers = { ".luarc.json", ".luarc.jsonc" },
|
||||
telemetry = { enabled = false },
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
version = "LuaJIT",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
6
lsp/marksman.lua
Normal file
6
lsp/marksman.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { "marksman" },
|
||||
root_markers = { ".md" },
|
||||
filetypes = { "markdown" },
|
||||
}
|
||||
6
lsp/terraform.lua
Normal file
6
lsp/terraform.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { "terraform-ls", "serve" },
|
||||
root_markers = { "go.work", "go.mod", ".git" },
|
||||
filetypes = { "terraform" },
|
||||
}
|
||||
5
lsp/yaml.lua
Normal file
5
lsp/yaml.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---@type vim.lsp.Config
|
||||
return {
|
||||
filetypes = { "yaml" },
|
||||
cmd = { "yaml-language-server", "--stdio" },
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue