feat: Add tiny-inline-diagnostic

This commit is contained in:
demenik
2025-12-16 14:58:47 +01:00
parent 072ef7d6bf
commit bf901af37c
3 changed files with 5 additions and 7 deletions

View File

@@ -32,9 +32,6 @@
-- vim.cmd [[ :map <Right> <Nop> ]] -- vim.cmd [[ :map <Right> <Nop> ]]
-- vim.cmd [[ :map <Down> <Nop> ]] -- vim.cmd [[ :map <Down> <Nop> ]]
-- Enable diagnostics virtual text
vim.diagnostic.config({ virtual_text = true })
-- Add filetypes -- Add filetypes
vim.filetype.add({ vim.filetype.add({
pattern = { pattern = {

View File

@@ -6,6 +6,10 @@
lspkind = import ./lspkind.nix; lspkind = import ./lspkind.nix;
lspconfig.enable = true; lspconfig.enable = true;
trouble.enable = true; trouble.enable = true;
tiny-inline-diagnostic = {
enable = true;
settings.options.multilines.enabled = true;
};
}; };
keymaps = let keymaps = let

View File

@@ -152,10 +152,7 @@ wk.add {
set_key.trouble("t", "todo", "Todo"), set_key.trouble("t", "todo", "Todo"),
set_key.trouble("q", "qflist", "QuickFix List"), set_key.trouble("q", "qflist", "QuickFix List"),
set_key.trouble("L", "loclist", "Location List"), set_key.trouble("L", "loclist", "Location List"),
set_key.cmd("xv", function() set_key.cmd("xv", "TinyInlineDiag toggle", "Toggle virtual text"),
local current_value = vim.diagnostic.config().virtual_text
vim.diagnostic.config({ virtual_text = not current_value })
end, "Toggle virtual text"),
--- LSP --- --- LSP ---
set_key.trouble("l", "lsp", "LSP"), set_key.trouble("l", "lsp", "LSP"),