Skip to content

Instantly share code, notes, and snippets.

@mengwangk
Created August 2, 2021 13:44
Show Gist options
  • Save mengwangk/235de2156f04e97d6786a140179f9ef4 to your computer and use it in GitHub Desktop.
Save mengwangk/235de2156f04e97d6786a140179f9ef4 to your computer and use it in GitHub Desktop.
rust-tools LSP config
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