From 7a5f01f774c678980dcdef8759221b0facd37442 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Mon, 8 Apr 2024 10:47:52 +0200 Subject: [PATCH] Add rustaceanvim --- nvim/lua/plugs/rustaceanvim.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nvim/lua/plugs/rustaceanvim.lua diff --git a/nvim/lua/plugs/rustaceanvim.lua b/nvim/lua/plugs/rustaceanvim.lua new file mode 100644 index 0000000..4ed32e0 --- /dev/null +++ b/nvim/lua/plugs/rustaceanvim.lua @@ -0,0 +1,22 @@ +return { + "mrcjkb/rustaceanvim", + version = "^4", + ft = { "rust" }, + config = function() + vim.g.rustaceanvim = { + inlay_hints = { + highlight = "NonText", + }, + tools = { + hover_actions = { + auto_focus = true, + }, + }, + server = { + on_attach = function(_, bufnr) + vim.lsp.inlay_hint.enable(bufnr, true) + end, + } + } + end, +}