migrate nvim config to 0.12.0: vim.pack, ui2, snacks -> mini, just general spring cleaning
This commit is contained in:
parent
d1178fbe59
commit
14b1a9b057
70 changed files with 1081 additions and 1483 deletions
35
nvim/plugin/rustaceanvim.lua
Normal file
35
nvim/plugin/rustaceanvim.lua
Normal 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,
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue