mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-01 10:47:24 +00:00
chore(nvim): trouble.nvim related tweaks
This commit is contained in:
@@ -50,6 +50,37 @@ return {
|
||||
auto_fold = true,
|
||||
auto_close = true,
|
||||
use_lsp_diagnostic_signs = true,
|
||||
keys = {
|
||||
j = 'next',
|
||||
k = 'prev',
|
||||
},
|
||||
modes = {
|
||||
diagnostics = {
|
||||
auto_open = true,
|
||||
},
|
||||
test = {
|
||||
mode = 'diagnostics',
|
||||
preview = {
|
||||
type = 'split',
|
||||
relative = 'win',
|
||||
position = 'right',
|
||||
size = 0.3,
|
||||
},
|
||||
},
|
||||
cascade = {
|
||||
mode = 'diagnostics', -- inherit from diagnostics mode
|
||||
filter = function(items)
|
||||
local severity = vim.diagnostic.severity.HINT
|
||||
for _, item in ipairs(items) do
|
||||
severity = math.min(severity, item.severity)
|
||||
end
|
||||
return vim.tbl_filter(
|
||||
function(item) return item.severity == severity end,
|
||||
items
|
||||
)
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user