Updated config
This commit is contained in:
parent
7085c0afa9
commit
7547ef0ff1
11 changed files with 127 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
return {
|
||||
cmd = { "clangd", "--background-index" },
|
||||
root_markers = { "meson_options.txt", "CMakePresets.json", "compile_commands.json" },
|
||||
root_markers = { "meson_options.txt", "CMakePresets.json", "compile_commands.json", ".git" },
|
||||
filetypes = { "c", "cpp" },
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
return {
|
||||
cmd = { "gopls" },
|
||||
root_markers = { "go.mod", "go.work" },
|
||||
root_markers = { "go.mod", "go.work", ".git" },
|
||||
filetypes = { "go", "gomod", "gowork", "gotmpl" },
|
||||
}
|
15
.config/nvim/lsp/lua-language-server.lua
Normal file
15
.config/nvim/lsp/lua-language-server.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
cmd = { "lua-language-server" },
|
||||
filetypes = { "lua" },
|
||||
root_markers = { "stylua.toml", "init.lua", ".git" },
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = { version = "LuaJIT" },
|
||||
workspace = {
|
||||
checkThirdParty = false,
|
||||
library = vim.api.nvim_get_runtime_file("", true),
|
||||
},
|
||||
telemetry = { enable = false }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
return {
|
||||
cmd = { "rust-analyzer" },
|
||||
root_markers = { "Cargo.toml" },
|
||||
root_markers = { "Cargo.toml", ".git" },
|
||||
filetypes = { "rust" },
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue