From 3fd0a4bbaab90b78d5f0a0b3868d517e9cb7453d Mon Sep 17 00:00:00 2001 From: schererleander Date: Wed, 14 May 2025 03:20:55 +0200 Subject: change diagnostic text --- modules/nvf.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/nvf.nix b/modules/nvf.nix index ad9a33e..ec567df 100644 --- a/modules/nvf.nix +++ b/modules/nvf.nix @@ -43,11 +43,9 @@ lsp = { enable = true; - formatOnSave = true; lspkind.enable = true; lspSignature.enable = true; - }; diagnostics = { @@ -63,6 +61,13 @@ }; underline = true; virtual_lines = true; + virtual_text = { + format = lib.generators.mkLuaInline '' + function(diagnostic) + return string.format("%s (%s)", diagnostic.message, diagnostic.source) + end + ''; + }; }; nvim-lint.enable = true; }; @@ -106,7 +111,7 @@ autocmds = [ { event = ["VimEnter"]; - command = "highlight Statusline guibg=none | highlight StatuslineNC guibg=none"; + command = "highlight StatusLine guibg=none | highlight StatusLineNC guibg=none"; } ]; -- cgit v1.3.1