|
| 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 | +} |
0 commit comments