summaryrefslogtreecommitdiffstats
path: root/.config
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
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')
-rw-r--r--.config/nvim/after/plugin/trouble.lua2
-rw-r--r--.config/nvim/lua/bindings.lua14
-rw-r--r--.config/nvim/lua/packs.lua4
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()