Skip to content

Commit 5059c74

Browse files
committed
Add trouble
1 parent c50878d commit 5059c74

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

lua/custom/plugins/clangd-ext.lua

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
return {
2+
{
3+
'p00f/clangd_extensions.nvim',
4+
lazy = true,
5+
config = function()
6+
require('clangd_extensions').setup {
7+
inlay_hints = {
8+
inline = vim.fn.has 'nvim-0.10' == 1,
9+
-- Only show inlay hints for the current line
10+
only_current_line = false,
11+
-- Event which triggers a refresh of the inlay hints
12+
only_current_line_autocmd = 'CursorHold',
13+
-- Show parameter hints with the inlay hints
14+
show_parameter_hints = true,
15+
-- Show hints at the beginning of the line
16+
show_variable_name = false,
17+
-- Prefix for parameter hints
18+
parameter_hints_prefix = '<- ',
19+
-- Prefix for all the other hints (type, chaining)
20+
other_hints_prefix = '=> ',
21+
},
22+
}
23+
end,
24+
},
25+
{
26+
'folke/trouble.nvim',
27+
opts = {}, -- for default options, refer to the configuration section for custom setup.
28+
cmd = 'Trouble',
29+
keys = {
30+
{
31+
'<leader>xx',
32+
'<cmd>Trouble diagnostics toggle<cr>',
33+
desc = 'Diagnostics (Trouble)',
34+
},
35+
{
36+
'<leader>xX',
37+
'<cmd>Trouble diagnostics toggle filter.buf=0<cr>',
38+
desc = 'Buffer Diagnostics (Trouble)',
39+
},
40+
{
41+
'<leader>cs',
42+
'<cmd>Trouble symbols toggle focus=false<cr>',
43+
desc = 'Symbols (Trouble)',
44+
},
45+
{
46+
'<leader>cl',
47+
'<cmd>Trouble lsp toggle focus=false win.position=right<cr>',
48+
desc = 'LSP Definitions / references / ... (Trouble)',
49+
},
50+
{
51+
'<leader>xL',
52+
'<cmd>Trouble loclist toggle<cr>',
53+
desc = 'Location List (Trouble)',
54+
},
55+
{
56+
'<leader>xQ',
57+
'<cmd>Trouble qflist toggle<cr>',
58+
desc = 'Quickfix List (Trouble)',
59+
},
60+
},
61+
},
62+
}

lua/custom/plugins/neo-tree.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ return {
3939

4040
-- Keymaps
4141
vim.keymap.set('n', '<C-n>', ':Neotree toggle<CR>', { silent = true })
42-
vim.keymap.set('n', '<leader>o', ':Neotree focus<CR>', { silent = true })
4342
end,
4443
},
4544
}

0 commit comments

Comments
 (0)