Reworked config using chezmoi
This commit is contained in:
31
dot_config/nvim/lua/plugins/rustaceanvim.lua
Normal file
31
dot_config/nvim/lua/plugins/rustaceanvim.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
return {
|
||||
"mrcjkb/rustaceanvim",
|
||||
lazy = false, -- This plugin is already lazy
|
||||
config = function()
|
||||
vim.g.rustaceanvim = {
|
||||
server = {
|
||||
on_attach = function(_, _)
|
||||
local map = vim.keymap.set
|
||||
map({ "n", "v" }, "<leader>la", "<CMD>RustLsp codeAction<CR>", { desc = "Code action" })
|
||||
end,
|
||||
default_settings = {
|
||||
["rust-analyzer"] = {
|
||||
-- cargo = {
|
||||
-- allFeatures = true,
|
||||
-- },
|
||||
inlayHints = {
|
||||
parameterHints = {
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tools = {
|
||||
float_win_config = {
|
||||
border = "rounded",
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user