diff options
-rw-r--r-- | .config/nvim/after/plugin/trouble.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/bindings.lua | 14 | ||||
-rw-r--r-- | .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', '<C-k>', 'pumvisible() ? "<C-p>" : "<C-k>"', { expr = true } vim.keymap.set('i', '<CR>', 'pumvisible() ? asyncomplete#close_popup() : "\\<cr>"', { expr = true }) vim.keymap.set('n', '<F2>', vim.cmd.NvimTreeToggle, { noremap = true, silent = true }) vim.keymap.set('n', '<F4>', ':make<space>-j5<space>', { noremap = true, silent = false }) -vim.keymap.set('n', '<F3>', vim.cmd.TroubleToggle, { noremap = true, silent = true }) +vim.keymap.set('n', '<F3>', ':Trouble diagnostics toggle focus=true<CR>', { noremap = true, silent = true }) vim.keymap.set('n', '<F5>', vim.cmd.UndotreeToggle, { noremap = true, silent = true }) vim.g.floaterm_keymap_toggle = '<F1>' vim.g.floaterm_keymap_prev = '<F11>' @@ -49,12 +49,12 @@ vim.keymap.set('n', '<leader>aa', function() harpoon:list():add() end, { noremap vim.keymap.set('n', '<leader>ae', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end, { noremap = true, silent = true }) vim.keymap.set('n', '<leader>af', ':Telescope harpoon marks<CR>', { noremap = true, silent = true }) -- trouble -vim.keymap.set('n', '<leader>xx', vim.cmd.TroubleToggle, { noremap = true, silent = true }) -vim.keymap.set('n', '<leader>xw', ':TroubleToggle workspace_diagnostics<CR>', { noremap = true, silent = true }) -vim.keymap.set('n', '<leader>xd', ':TroubleToggle document_diagnostics<CR>', { noremap = true, silent = true }) -vim.keymap.set('n', '<leader>xl', ':TroubleToggle loclist<CR>', { noremap = true, silent = true }) -vim.keymap.set('n', '<leader>xq', ':TroubleToggle quickfix<CR>', { noremap = true, silent = true }) -vim.keymap.set('n', '<leader>xs', ':TroubleToggle lsp_references<CR>', { noremap = true, silent = true }) +vim.keymap.set('n', '<leader>xx', ':Trouble diagnostics toggle focus=true<CR>', { noremap = true, silent = true }) +vim.keymap.set('n', '<leader>xw', ':Trouble diagnostics toggle focus=true<CR>', { noremap = true, silent = true }) +vim.keymap.set('n', '<leader>xd', ':Trouble diagnostics toggle focus=true filter.buf=0<CR>', { noremap = true, silent = true }) +vim.keymap.set('n', '<leader>xl', ':Trouble loclist toggle focus=true<CR>', { noremap = true, silent = true }) +vim.keymap.set('n', '<leader>xq', ':Trouble qflist toggle focus=true<CR>', { noremap = true, silent = true }) +vim.keymap.set('n', '<leader>xs', ':Trouble lsp toggle focus=true win.position=right<CR>', { noremap = true, silent = true }) -- telescope vim.keymap.set('n', '<leader>fb', ts.buffers, { noremap = true, silent = true }) vim.keymap.set('n', '<leader>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() |