# HG changeset patch # User Zeger Van de Vannet # Date 1657291048 -7200 # Node ID 1def7efdc6192add12a15f04fc234751c6671bb2 # Parent 3d9a8768fdc876e11889ba38118e8bb6908ae22e Add trouble.nvim for diagnostics overview diff -r 3d9a8768fdc8 -r 1def7efdc619 .chezmoitemplates/init.lua --- a/.chezmoitemplates/init.lua Fri Jul 08 14:26:26 2022 +0200 +++ b/.chezmoitemplates/init.lua Fri Jul 08 16:37:28 2022 +0200 @@ -425,6 +425,23 @@ end, } 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 { 'vimjas/vim-python-pep8-indent', ft = { 'python' } } @@ -793,7 +810,10 @@ local view = vim.fn.winsaveview() vim.cmd [[ normal! * ]] vim.fn.winrestview(view) -end, { silent = true, desc = 'Search word under cursor without moving to first results' }) +end, { + silent = true, + desc = 'Search word under cursor without moving to first results', +}) map('n', '', ':cprev', { desc = 'Go to previous error/match' }) map('n', '', ':cnext', { desc = 'Go to next error/match' })