nvim: fix rust tools
This commit is contained in:
parent
57bea4647b
commit
bb1ee98dce
|
@ -13,9 +13,11 @@ let
|
|||
gnumake
|
||||
gcc
|
||||
nodejs_22
|
||||
|
||||
# Language servers
|
||||
lua-language-server # Lua
|
||||
nixd # Nix
|
||||
lua-language-server
|
||||
nixd
|
||||
|
||||
# Neovim
|
||||
wl-clipboard
|
||||
tree-sitter
|
||||
|
@ -48,7 +50,7 @@ in
|
|||
# Automatically delete old objects and generations
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than +5";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
"nvim-lspconfig": { "branch": "master", "commit": "4d38bece98300e3e5cd24a9aa0d0ebfea4951c16" },
|
||||
"nvim-nio": { "branch": "master", "commit": "7969e0a8ffabdf210edd7978ec954a47a737bbcc" },
|
||||
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "9636d5a3f4f531256fba147a30b882c44f28fae1" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "cdc613c630598779dc9f975bae12a4dc7c001950" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "34867c69838078df7d6919b130c0541c0b400c47" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
||||
"precognition.nvim": { "branch": "main", "commit": "9e6087fcd27dd5d2fc71b9d9471a101666c39f73" },
|
||||
"rustaceanvim": { "branch": "master", "commit": "bc8c4b8f7606d5b7c067cd8369e25c1a7ff77bd0" },
|
||||
"rustaceanvim": { "branch": "master", "commit": "2fa45427c01ded4d3ecca72e357f8a60fd8e46d4" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
|
||||
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "e0b35a273df58b03612255783cf475a782ede7e0" },
|
||||
|
|
|
@ -3,17 +3,10 @@ local n = map 'n'
|
|||
|
||||
|
||||
local function get_opts()
|
||||
local tools = require 'rustaceanvim'
|
||||
-- local tools = require 'rustaceanvim'
|
||||
|
||||
---@type RustaceanOpts
|
||||
return {
|
||||
server = {
|
||||
on_attach = function(_, bufnr)
|
||||
n '<C-b>' (tools.hover_actions.hover_actions) { buffer = bufnr }
|
||||
n '<Leader>a' (tools.code_action_group.code_action_group) { buffer = bufnr }
|
||||
end,
|
||||
},
|
||||
}
|
||||
return {}
|
||||
end
|
||||
|
||||
return function()
|
||||
|
|
Loading…
Reference in a new issue