test 0.12.1 config
This commit is contained in:
5
nvim-old/.config/nvim/lsp/bashls.lua
Normal file
5
nvim-old/.config/nvim/lsp/bashls.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
cmd = { "bash-language-server" },
|
||||
filetypes = { "sh", "bash", "zsh" },
|
||||
settings = {},
|
||||
}
|
||||
27
nvim-old/.config/nvim/lsp/gopls.lua
Normal file
27
nvim-old/.config/nvim/lsp/gopls.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
return {
|
||||
cmd = { "gopls" },
|
||||
root_markers = { "go.mod" },
|
||||
filetypes = { "go", "golang" },
|
||||
settings = {
|
||||
gopls = {
|
||||
completeUnimported = true,
|
||||
usePlaceholders = true,
|
||||
["completion.matcher"] = "fuzzy",
|
||||
["completion.completeFunctionCalls"] = true,
|
||||
analyses = {
|
||||
unusedparams = true,
|
||||
staticcheck = true,
|
||||
unusedwrite = true,
|
||||
shadow = true,
|
||||
},
|
||||
["ui.inlayhint.hints"] = {
|
||||
compositeLiteralFields = true,
|
||||
constantValues = true,
|
||||
parameterNames = true,
|
||||
assignVariableTypes = true,
|
||||
functionTypeParameters = true,
|
||||
rangeVariableTypes = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
17
nvim-old/.config/nvim/lsp/luals.lua
Normal file
17
nvim-old/.config/nvim/lsp/luals.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
cmd = { "lua-language-server" },
|
||||
root_markers = { ".luarc.json", ".luarc.jsonc" },
|
||||
filetypes = { "lua" },
|
||||
settings = {
|
||||
Lua = {
|
||||
completion = { callSnippet = "Both" },
|
||||
hint = { enable = true },
|
||||
workspace = {
|
||||
library = {
|
||||
vim.env.VIMRUNTIME,
|
||||
},
|
||||
},
|
||||
runtime = { version = "LuaJIT" },
|
||||
},
|
||||
},
|
||||
}
|
||||
31
nvim-old/.config/nvim/lsp/rust.lua
Normal file
31
nvim-old/.config/nvim/lsp/rust.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
return {
|
||||
cmd = { "rust-analyzer" },
|
||||
root_markers = { "Cargo.toml" },
|
||||
filetypes = { "rust" },
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
cargo = {
|
||||
allFeatures = true,
|
||||
loadOutDirsFromCheck = true,
|
||||
runBuildScripts = true,
|
||||
},
|
||||
checkOnSave = true,
|
||||
completion = {
|
||||
autoself = { enable = true },
|
||||
snippets = { enable = true },
|
||||
},
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
experimental = { enable = true },
|
||||
},
|
||||
procMacro = {
|
||||
enable = true,
|
||||
ignored = {
|
||||
["async-trait"] = { "async_trait" },
|
||||
["napi-derive"] = { "napi" },
|
||||
["async-recursion"] = { "async_recursion" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
6
nvim-old/.config/nvim/lsp/terraform.lua
Normal file
6
nvim-old/.config/nvim/lsp/terraform.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
return {
|
||||
cmd = { "terraform-ls", "serve" },
|
||||
root_markers = { ".terraform.lock", "backend.tf" },
|
||||
filetypes = { "terraform", "tf" },
|
||||
settings = {},
|
||||
}
|
||||
Reference in New Issue
Block a user