(neovim) another try of my own setup
This commit is contained in:
parent
50e0f23feb
commit
7225cf3967
54 changed files with 677 additions and 586 deletions
20
config/common/nvim/lsp/lua.lua
Normal file
20
config/common/nvim/lsp/lua.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
return {
|
||||
cmd = { "lua-language-server" },
|
||||
filetypes = { "lua" },
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = {
|
||||
"vim",
|
||||
"Snacks",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
capabilities = vim.tbl_deep_extend("force", {}, vim.lsp.protocol.make_client_capabilities(), {
|
||||
fileOperations = {
|
||||
didRename = true,
|
||||
willRename = true,
|
||||
},
|
||||
}),
|
||||
}
|
4
config/common/nvim/lsp/markdown.lua
Normal file
4
config/common/nvim/lsp/markdown.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
cmd = { "marksman", "server" },
|
||||
filetypes = { "markdown" },
|
||||
}
|
5
config/common/nvim/lsp/terraform.lua
Normal file
5
config/common/nvim/lsp/terraform.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
cmd = { "terraform-ls", "serve" },
|
||||
filetypes = { "terraform", "hcl" },
|
||||
root_markers = { ".terraform", ".git" },
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue