2023-11-08 03:16:46 +01:00
|
|
|
{lib, ...}: let
|
2024-03-12 01:46:29 +01:00
|
|
|
inherit (lib.options) mkEnableOption;
|
|
|
|
inherit (lib.nvim.binds) mkMappingOption;
|
2024-11-04 16:50:50 +01:00
|
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
2023-11-08 03:16:46 +01:00
|
|
|
in {
|
2023-02-27 20:25:39 +01:00
|
|
|
options.vim.lsp = {
|
|
|
|
trouble = {
|
2023-10-21 19:15:36 +02:00
|
|
|
enable = mkEnableOption "trouble diagnostics viewer";
|
2023-05-02 23:28:40 +02:00
|
|
|
|
2024-11-04 16:50:50 +01:00
|
|
|
setupOpts = mkPluginSetupOption "Trouble" {};
|
|
|
|
|
2023-05-02 23:28:40 +02: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 19:52:12 +01:00
|
|
|
symbols = mkMappingOption "Symbols [trouble]" "<leader>xs";
|
2023-05-02 23:28:40 +02:00
|
|
|
};
|
2023-02-27 20:25:39 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|