comparison .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
comparison
equal deleted inserted replaced
598:3d9a8768fdc8 599:1def7efdc619
423 config = function() 423 config = function()
424 require('lsp-format').setup {} 424 require('lsp-format').setup {}
425 end, 425 end,
426 } 426 }
427 use { 'folke/lua-dev.nvim' } 427 use { 'folke/lua-dev.nvim' }
428 use {
429 'folke/trouble.nvim',
430 config = function()
431 require('trouble').setup {
432 icons = false,
433 fold_open = 'v',
434 fold_closed = '>',
435 signs = {
436 error = 'error',
437 warning = 'warn',
438 hint = 'hint',
439 information = 'info',
440 },
441 use_diagnostic_signs = true,
442 }
443 end,
444 }
428 445
429 use { 'vimjas/vim-python-pep8-indent', ft = { 'python' } } 446 use { 'vimjas/vim-python-pep8-indent', ft = { 'python' } }
430 447
431 use { 448 use {
432 'NTBBloodbath/galaxyline.nvim', 449 'NTBBloodbath/galaxyline.nvim',
791 -- Do not move on * 808 -- Do not move on *
792 map('n', '*', function() 809 map('n', '*', function()
793 local view = vim.fn.winsaveview() 810 local view = vim.fn.winsaveview()
794 vim.cmd [[ normal! * ]] 811 vim.cmd [[ normal! * ]]
795 vim.fn.winrestview(view) 812 vim.fn.winrestview(view)
796 end, { silent = true, desc = 'Search word under cursor without moving to first results' }) 813 end, {
814 silent = true,
815 desc = 'Search word under cursor without moving to first results',
816 })
797 817
798 map('n', '<UP>', ':cprev<CR>', { desc = 'Go to previous error/match' }) 818 map('n', '<UP>', ':cprev<CR>', { desc = 'Go to previous error/match' })
799 map('n', '<DOWN>', ':cnext<CR>', { desc = 'Go to next error/match' }) 819 map('n', '<DOWN>', ':cnext<CR>', { desc = 'Go to next error/match' })
800 map('n', '<LEFT>', ':cpf<CR>', { desc = 'Go to previous error/match in previous file' }) 820 map('n', '<LEFT>', ':cpf<CR>', { desc = 'Go to previous error/match in previous file' })
801 map('n', '<RIGHT>', ':cnf<CR>', { desc = 'Go to next error/match in next file' }) 821 map('n', '<RIGHT>', ':cnf<CR>', { desc = 'Go to next error/match in next file' })