From faff2677470d081154a66d3bdb189a965787d85d Mon Sep 17 00:00:00 2001 From: krolyxon Date: Sat, 10 Sep 2022 22:51:27 +0530 Subject: [PATCH] rust-tools config changes --- lua/plugins/configs/rust-tools.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lua/plugins/configs/rust-tools.lua b/lua/plugins/configs/rust-tools.lua index f69bc25..8d8afb0 100644 --- a/lua/plugins/configs/rust-tools.lua +++ b/lua/plugins/configs/rust-tools.lua @@ -12,23 +12,25 @@ local options = { inlay_hints = { auto = true, only_current_line = false, - -- whether to show parameter hints with the inlay hints or not - -- default: true show_parameter_hints = true, }, + hover_actions = { + auto_focus = true, + }, on_initialized = function() -- ih.set_all() end, }, server = { - on_attach = - require("plugins.configs.lspconfig").on_attach + on_attach = require("plugins.configs.lspconfig").on_attach, + standalone = true, }, settings = { ["rust-analyzer"] = { checkOnSave = { - command = "check", + -- command = "check", + command = "clippy", } } }