feat(rust): add rustaceanvim config

This commit is contained in:
doryan 2024-12-13 15:31:21 +04:00
parent 5471764258
commit 7b0855cb23

View File

@ -0,0 +1,18 @@
local navic = require("nvim-navic")
vim.g.rustaceanvim = {
server = {
on_attach = function(client, bufnr)
navic.attach(client, bufnr)
end,
filetypes = {"rust"},
settings = {
-- rust-analyzer language server configuration
['rust-analyzer'] = {
cargo = {
allFeatures = true,
},
},
},
},
}