1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 11:24:55 +02:00
dotfiles/nvim/lua/user/plugins/lang/rust.lua

38 lines
872 B
Lua

local lspservers = {
rust_analyzer = {
-- settings = {
-- ["rust-analyzer"] = {
-- imports = {
-- granularity = {
-- group = "module",
-- },
-- prefix = "self",
-- },
-- cargo = {
-- buildScripts = {
-- enable = true,
-- },
-- },
-- procMacro = {
-- enable = true
-- },
-- }
-- }
}
}
return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = { "rust", "toml" }
}
},
{
"neovim/nvim-lspconfig",
ft = { "rust" },
opts = {
servers = lspservers
},
}
}