From d6c8018a2d5ec9bcf3abe4e8a682a8e81957a42a Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Fri, 30 May 2025 15:29:29 +0200 Subject: [PATCH] Enable diagnostic real-time updates from rust LSP --- nvim/lua/plugs/rustaceanvim.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nvim/lua/plugs/rustaceanvim.lua b/nvim/lua/plugs/rustaceanvim.lua index ba13dbf..5b97f1f 100644 --- a/nvim/lua/plugs/rustaceanvim.lua +++ b/nvim/lua/plugs/rustaceanvim.lua @@ -10,10 +10,26 @@ return { tools = { hover_actions = { auto_focus = true, + replace_builtin_hover = true, }, }, server = { on_attach = require("lsplib").configure_generic_client, + default_settings = { + ["rust-analyzer"] = { + inlayHints = { + chainingHints = true, + parameterHints = true, + typeHints = true, + }, + diagnostics = { + enable = true, + experimental = { + enable = true, + }, + }, + }, + }, } } end,