Skip to content

Commit

Permalink
Fix rust-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ViViDboarder committed Dec 8, 2023
1 parent b652a9b commit b3f73d9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions neovim/lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,14 @@ function M.config_lsp()
-- Prefer rust-tools, if present
utils.try_require("rust-tools", function(rust_tools)
rust_tools.setup({
capabilities = capabilities,
on_attach = function(client, bufnr)
default_attach(client, bufnr)
-- TODO: override some bindings from rust-tools
-- Eg. rust_tools.hover_actions.hover_actions or rt.code_action_group.code_action_group
end,
server = {
capabilities = capabilities,
on_attach = function(client, bufnr)
default_attach(client, bufnr)
-- TODO: override some bindings from rust-tools
-- Eg. rust_tools.hover_actions.hover_actions or rt.code_action_group.code_action_group
end,
},
})
end, function()
lsp_config.rust_analyzer.setup({
Expand Down

0 comments on commit b3f73d9

Please sign in to comment.