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;
|
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
|
|
|
|
|
|
|
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 20:25:39 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|