From 7b0855cb2321788f7f6a72ba4ddd12c18ccbb071 Mon Sep 17 00:00:00 2001 From: doryan Date: Fri, 13 Dec 2024 15:31:21 +0400 Subject: [PATCH] feat(rust): add rustaceanvim config --- lua/config/plugins/rustaceanvim.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lua/config/plugins/rustaceanvim.lua 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, + }, + }, + }, + }, +}