Created
August 2, 2021 13:44
-
-
Save mengwangk/235de2156f04e97d6786a140179f9ef4 to your computer and use it in GitHub Desktop.
rust-tools LSP config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function setup_rust_tools() | |
local tools = { | |
autoSetHints = true, | |
runnables = {use_telescope = true}, | |
inlay_hints = {show_parameter_hints = true}, | |
hover_actions = {auto_focus = true} | |
} | |
require('rust-tools').setup({ | |
tools = tools, | |
server = { | |
on_attach = lsp_on_attach, | |
capabilities = capabilities, | |
flags = {debounce_text_changes = 150} | |
} | |
}) | |
require('rust-tools-debug').setup() | |
end | |
pcall(setup_rust_tools) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment