diff --git a/lua/config/plugins/rustaceanvim.lua b/lua/config/plugins/rustaceanvim.lua new file mode 100644 index 0000000..369f407 --- /dev/null +++ b/lua/config/plugins/rustaceanvim.lua @@ -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, + }, + }, + }, + }, +}