mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:37:33 +00:00
Fix rust-tools
This commit is contained in:
parent
b652a9b49d
commit
b3f73d92dc
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user