nixos-combined-flake/modules/nixvim/plugins/trouble.nix

42 lines
833 B
Nix

{
plugins.trouble = {
enable = true;
settings = {
modes = {
workspace-diagnostics = {
mode = "diagnostics";
filter = [{
any = [
{ buf = 0; }
{
__raw =
''
function(item)
return item.filename:find((vim.loop or vim.uv).cwd(), 1, true)
end
'';
}
];
}];
};
};
};
};
keymaps = [
{
key = "<leader>xx";
action = "<cmd>Trouble workspace-diagnostics toggle<CR>";
options = {
silent = true;
};
}
{
key = "<leader>xq";
action = "<cmd>TroubleToggle quickfix toggle<CR>";
options = {
silent = true;
};
}
];
}