Mercurial > dotfiles
diff .chezmoitemplates/init.lua @ 599:1def7efdc619
Add trouble.nvim for diagnostics overview
author | Zeger Van de Vannet <zegervdv@me.com> |
---|---|
date | Fri, 08 Jul 2022 16:37:28 +0200 |
parents | e8615fbcf11b |
children | 24b0dd06381b |
line wrap: on
line diff
--- 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', '<UP>', ':cprev<CR>', { desc = 'Go to previous error/match' }) map('n', '<DOWN>', ':cnext<CR>', { desc = 'Go to next error/match' })