aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-05-14 03:20:55 +0200
committerschererleander <leander@schererleander.de>2025-05-14 03:20:55 +0200
commit3fd0a4bbaab90b78d5f0a0b3868d517e9cb7453d (patch)
tree7b4e3dfc9f0199e67b74ff4ed5c05c6a5eb7a7f3 /modules
parent8f1138368dc0008be3423c34461ee911f7d6c148 (diff)
change diagnostic text
Diffstat (limited to 'modules')
-rw-r--r--modules/nvf.nix11
1 files changed, 8 insertions, 3 deletions
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";
}
];