summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/bindings.lua
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-06-16 20:16:32 +0200
committerJoe <rbo@gmx.us>2024-06-16 20:16:32 +0200
commit37236d3ecdb1b00c620d450fc6a716c791b7864e (patch)
tree7be616f5722f800b6fea61dad8fa5657b36f67fd /.config/nvim/lua/bindings.lua
parentup (diff)
downloaddotfiles-bsd-37236d3ecdb1b00c620d450fc6a716c791b7864e.tar.gz
dotfiles-bsd-37236d3ecdb1b00c620d450fc6a716c791b7864e.tar.bz2
dotfiles-bsd-37236d3ecdb1b00c620d450fc6a716c791b7864e.tar.xz
dotfiles-bsd-37236d3ecdb1b00c620d450fc6a716c791b7864e.tar.zst
dotfiles-bsd-37236d3ecdb1b00c620d450fc6a716c791b7864e.zip
up
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 })