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-11-04 15:50:50 +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-11-04 15:50:50 +00:00
|
|
|
setupOpts = mkPluginSetupOption "Trouble" {};
|
|
|
|
|
2023-05-02 21:28:40 +00:00
|
|
|
mappings = {
|
|
|
|
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";
|
2024-11-10 18:52:12 +00:00
|
|
|
symbols = mkMappingOption "Symbols [trouble]" "<leader>xs";
|
2023-05-02 21:28:40 +00:00
|
|
|
};
|
2023-02-27 19:25:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|