migrate nvim config to 0.12.0: vim.pack, ui2, snacks -> mini, just general spring cleaning

This commit is contained in:
Martin Larsson 2026-04-05 20:05:00 +02:00
parent d1178fbe59
commit 14b1a9b057
70 changed files with 1081 additions and 1483 deletions

View file

@ -0,0 +1,35 @@
vim.api.nvim_create_autocmd("FileType", {
pattern = "rust",
once = true,
callback = function()
vim.g.rustaceanvim = {
inlay_hints = {
highlight = "NonText",
},
tools = {
hover_actions = {
auto_focus = true,
replace_builtin_hover = true,
},
},
server = {
default_settings = {
["rust-analyzer"] = {
inlayHints = {
chainingHints = true,
parameterHints = true,
typeHints = true,
},
diagnostics = {
enable = true,
experimental = { enable = true },
},
},
},
},
}
vim.pack.add({
{ src = "https://github.com/mrcjkb/rustaceanvim", version = vim.version.range("5.x") },
})
end,
})