Add rust and toml LSP configs

This commit is contained in:
Fábio André Damas 2025-03-27 13:03:32 +00:00
parent 16e0df81f4
commit 0bca9e877b
4 changed files with 19 additions and 4 deletions

11
lsp/rust-analyzer.lua Normal file
View file

@ -0,0 +1,11 @@
return {
cmd = { "rust-analyzer" },
filetypes = { "rust" },
root_makers = { "Cargo.toml", ".git" },
capabilities = {
experimental = {
serverStatusNotification = true
}
},
single_file_support = true,
}

5
lsp/taplo.lua Normal file
View file

@ -0,0 +1,5 @@
return {
cmd = { "taplo", "lsp", "stdio" },
filetypes = { "toml" },
single_file_support = true
}