Fix rust-tools

This commit is contained in:
ViViDboarder 2023-12-08 09:35:32 -08:00
parent b652a9b49d
commit b3f73d92dc

View File

@ -300,12 +300,14 @@ function M.config_lsp()
-- Prefer rust-tools, if present -- Prefer rust-tools, if present
utils.try_require("rust-tools", function(rust_tools) utils.try_require("rust-tools", function(rust_tools)
rust_tools.setup({ rust_tools.setup({
server = {
capabilities = capabilities, capabilities = capabilities,
on_attach = function(client, bufnr) on_attach = function(client, bufnr)
default_attach(client, bufnr) default_attach(client, bufnr)
-- TODO: override some bindings from rust-tools -- TODO: override some bindings from rust-tools
-- Eg. rust_tools.hover_actions.hover_actions or rt.code_action_group.code_action_group -- Eg. rust_tools.hover_actions.hover_actions or rt.code_action_group.code_action_group
end, end,
},
}) })
end, function() end, function()
lsp_config.rust_analyzer.setup({ lsp_config.rust_analyzer.setup({