2023-11-08 02:16:46 +00:00
|
|
|
{lib, ...}: let
|
2024-03-12 00:46:29 +00:00
|
|
|
inherit (lib.options) mkEnableOption;
|
|
|
|
inherit (lib.nvim.binds) mkMappingOption;
|
2024-09-30 19:58:48 +00:00
|
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
2023-11-08 02:16:46 +00:00
|
|
|
in {
|
2023-02-27 19:25:39 +00:00
|
|
|
options.vim.lsp = {
|
|
|
|
trouble = {
|
2023-10-21 17:15:36 +00:00
|
|
|
enable = mkEnableOption "trouble diagnostics viewer";
|
2023-05-02 21:28:40 +00:00
|
|
|
|
2024-09-30 19:58:48 +00:00
|
|
|
setupOpts = mkPluginSetupOption "Trouble" {};
|
|
|
|
|
2023-05-02 21:28:40 +00:00
|
|
|
mappings = {
|
|
|
|
toggle = mkMappingOption "Toggle trouble [trouble]" "<leader>xx";
|
|
|
|
workspaceDiagnostics = mkMappingOption "Workspace diagnostics [trouble]" "<leader>lwd";
|
|
|
|
documentDiagnostics = mkMappingOption "Document diagnostics [trouble]" "<leader>ld";
|
|
|
|
lspReferences = mkMappingOption "LSP References [trouble]" "<leader>lr";
|
|
|
|
quickfix = mkMappingOption "QuickFix [trouble]" "<leader>xq";
|
|
|
|
locList = mkMappingOption "LOCList [trouble]" "<leader>xl";
|
|
|
|
};
|
2023-02-27 19:25:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|