testing nixvim

This commit is contained in:
cnst
2024-07-14 19:22:54 +02:00
parent e4d12360ba
commit 996a3c64d2
43 changed files with 892 additions and 59 deletions

View File

@@ -0,0 +1,47 @@
return {
{
"mrcjkb/rustaceanvim",
version = "^3",
event = { "BufReadPost *.rs" },
keys = {
{
"<Leader>a",
mode = "n",
function()
vim.cmd.RustLsp("codeAction")
end,
{ buffer = vim.api.nvim_get_current_buf() },
desc = "LSP Code Action",
},
},
config = function()
vim.g.rustaceanvim = {
tools = {
inlay_hints = {
auto = false,
highlight = "Debug",
},
hover_actions = {
auto_focus = true,
},
},
server = {
settings = {
["rust-analyzer"] = {
checkOnSave = {
enable = true,
command = "clippy",
},
cargo = {
allFeatures = true,
},
},
},
on_attach = function(client, _)
client.server_capabilities.semanticTokensProvider = nil
end,
},
}
end,
},
}