# HG changeset patch # User zegervdv # Date 1658408679 -7200 # Node ID f6e88e1bfe13781859afd83591879cf71cd1a5c3 # Parent a879f63773a240818b09a4b8042e46bea869633a use simple quickfix on clicking diagnostic info diff -r a879f63773a2 -r f6e88e1bfe13 .chezmoitemplates/init.lua --- a/.chezmoitemplates/init.lua Wed Jul 20 10:49:39 2022 +0200 +++ b/.chezmoitemplates/init.lua Thu Jul 21 15:04:39 2022 +0200 @@ -391,23 +391,6 @@ } use { 'folke/lua-dev.nvim' } use { - 'folke/trouble.nvim', - config = function() - require('trouble').setup { - icons = false, - fold_open = 'v', - fold_closed = '>', - signs = { - error = 'error', - warning = 'warn', - hint = 'hint', - information = 'info', - }, - use_diagnostic_signs = true, - } - end, - } - use { 'smjonas/inc-rename.nvim', config = function() require('inc_rename').setup { @@ -527,7 +510,10 @@ }, hl = { fg = 'diag_warn' }, on_click = { - callback = function() require('trouble').toggle { mode = 'document_diagnostics' } end, + callback = function() + vim.diagnostic.setqflist { severity = vim.diagnostic.severity.WARN } + vim.cmd [[ botright copen ]] + end, name = 'heirline_diagnostics', }, }