Migrate to vim.lsp
This commit is contained in:
45
nvim/dot-config/nvim/lua/tools/lsp.lua
Normal file
45
nvim/dot-config/nvim/lua/tools/lsp.lua
Normal file
@@ -0,0 +1,45 @@
|
||||
return {
|
||||
{
|
||||
"rust_analyzer",
|
||||
{
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
check = {
|
||||
command = "clippy",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
system = "rust-analyzer",
|
||||
},
|
||||
{ "typos_lsp", {
|
||||
init_options = {
|
||||
diagnosticSeverity = "Hint",
|
||||
},
|
||||
} },
|
||||
{ "clangd", {
|
||||
cmd = { "clangd", "--offset-encoding=utf-16", "--clang-tidy" },
|
||||
} },
|
||||
"pyright",
|
||||
{
|
||||
"lua_ls",
|
||||
{
|
||||
settings = {
|
||||
Lua = {
|
||||
workspace = { checkThirdParty = false },
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"gopls",
|
||||
condition = function()
|
||||
return vim.fn.executable("go") > 0
|
||||
end,
|
||||
},
|
||||
"jsonls",
|
||||
"yamlls",
|
||||
"taplo",
|
||||
"neocmake",
|
||||
}
|
||||
Reference in New Issue
Block a user