From 37236d3ecdb1b00c620d450fc6a716c791b7864e Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 16 Jun 2024 20:16:32 +0200 Subject: up --- .config/nvim/after/plugin/trouble.lua | 2 +- .config/nvim/lua/bindings.lua | 14 +++++++------- .config/nvim/lua/packs.lua | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.config/nvim/after/plugin/trouble.lua b/.config/nvim/after/plugin/trouble.lua index f2a74fb..c18491c 100644 --- a/.config/nvim/after/plugin/trouble.lua +++ b/.config/nvim/after/plugin/trouble.lua @@ -1,5 +1,5 @@ require('trouble').setup { - icons = true, + -- icons = true, } -- Diagnostic signs diff --git a/.config/nvim/lua/bindings.lua b/.config/nvim/lua/bindings.lua index 67e6d8a..a7570da 100644 --- a/.config/nvim/lua/bindings.lua +++ b/.config/nvim/lua/bindings.lua @@ -17,7 +17,7 @@ vim.keymap.set('i', '', 'pumvisible() ? "" : ""', { expr = true } vim.keymap.set('i', '', 'pumvisible() ? asyncomplete#close_popup() : "\\"', { expr = true }) vim.keymap.set('n', '', vim.cmd.NvimTreeToggle, { noremap = true, silent = true }) vim.keymap.set('n', '', ':make-j5', { noremap = true, silent = false }) -vim.keymap.set('n', '', vim.cmd.TroubleToggle, { noremap = true, silent = true }) +vim.keymap.set('n', '', ':Trouble diagnostics toggle focus=true', { noremap = true, silent = true }) vim.keymap.set('n', '', vim.cmd.UndotreeToggle, { noremap = true, silent = true }) vim.g.floaterm_keymap_toggle = '' vim.g.floaterm_keymap_prev = '' @@ -49,12 +49,12 @@ vim.keymap.set('n', 'aa', function() harpoon:list():add() end, { noremap vim.keymap.set('n', 'ae', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end, { noremap = true, silent = true }) vim.keymap.set('n', 'af', ':Telescope harpoon marks', { noremap = true, silent = true }) -- trouble -vim.keymap.set('n', 'xx', vim.cmd.TroubleToggle, { noremap = true, silent = true }) -vim.keymap.set('n', 'xw', ':TroubleToggle workspace_diagnostics', { noremap = true, silent = true }) -vim.keymap.set('n', 'xd', ':TroubleToggle document_diagnostics', { noremap = true, silent = true }) -vim.keymap.set('n', 'xl', ':TroubleToggle loclist', { noremap = true, silent = true }) -vim.keymap.set('n', 'xq', ':TroubleToggle quickfix', { noremap = true, silent = true }) -vim.keymap.set('n', 'xs', ':TroubleToggle lsp_references', { noremap = true, silent = true }) +vim.keymap.set('n', 'xx', ':Trouble diagnostics toggle focus=true', { noremap = true, silent = true }) +vim.keymap.set('n', 'xw', ':Trouble diagnostics toggle focus=true', { noremap = true, silent = true }) +vim.keymap.set('n', 'xd', ':Trouble diagnostics toggle focus=true filter.buf=0', { noremap = true, silent = true }) +vim.keymap.set('n', 'xl', ':Trouble loclist toggle focus=true', { noremap = true, silent = true }) +vim.keymap.set('n', 'xq', ':Trouble qflist toggle focus=true', { noremap = true, silent = true }) +vim.keymap.set('n', 'xs', ':Trouble lsp toggle focus=true win.position=right', { noremap = true, silent = true }) -- telescope vim.keymap.set('n', 'fb', ts.buffers, { noremap = true, silent = true }) vim.keymap.set('n', 'fd', ts.diagnostics, { noremap = true, silent = true }) diff --git a/.config/nvim/lua/packs.lua b/.config/nvim/lua/packs.lua index f9eebb6..386f8c7 100644 --- a/.config/nvim/lua/packs.lua +++ b/.config/nvim/lua/packs.lua @@ -80,12 +80,12 @@ return require('packer').startup({function(use) {'rafamadriz/friendly-snippets'}, } } - use({ + use{ 'folke/trouble.nvim', requires = { {'nvim-tree/nvim-web-devicons'}, }, - }) + } use { 'lukas-reineke/indent-blankline.nvim', config = function() -- cgit v1.2.3