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, +}