summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/bindings.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/bindings.lua')
-rw-r--r--.config/nvim/lua/bindings.lua14
1 files changed, 7 insertions, 7 deletions
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 })