2023-11-08 03:16:46 +01:00
|
|
|
{lib, ...}: let
|
|
|
|
inherit (lib) mkEnableOption mkMappingOption;
|
|
|
|
in {
|
2023-04-22 19:42:31 +02:00
|
|
|
options.vim.lsp.lspsaga = {
|
|
|
|
enable = mkEnableOption "LSP Saga";
|
2023-02-01 20:11:37 +01:00
|
|
|
|
2023-04-22 19:42:31 +02:00
|
|
|
mappings = {
|
|
|
|
lspFinder = mkMappingOption "LSP Finder [LSPSaga]" "<leader>lf";
|
|
|
|
renderHoveredDoc = mkMappingOption "Rendered hovered docs [LSPSaga]" "<leader>lh";
|
2023-02-01 20:11:37 +01:00
|
|
|
|
2023-04-22 19:42:31 +02:00
|
|
|
smartScrollUp = mkMappingOption "Smart scroll up [LSPSaga]" "<C-f>";
|
|
|
|
smartScrollDown = mkMappingOption "Smart scroll up [LSPSaga]" "<C-b>";
|
|
|
|
|
|
|
|
rename = mkMappingOption "Rename [LSPSaga]" "<leader>lr";
|
|
|
|
previewDefinition = mkMappingOption "Preview definition [LSPSaga]" "<leader>ld";
|
|
|
|
|
|
|
|
showLineDiagnostics = mkMappingOption "Show line diagnostics [LSPSaga]" "<leader>ll";
|
|
|
|
showCursorDiagnostics = mkMappingOption "Show cursor diagnostics [LSPSaga]" "<leader>lc";
|
2023-02-01 20:11:37 +01:00
|
|
|
|
2023-04-22 19:42:31 +02:00
|
|
|
nextDiagnostic = mkMappingOption "Next diagnostic [LSPSaga]" "<leader>ln";
|
|
|
|
previousDiagnostic = mkMappingOption "Previous diagnostic [LSPSaga]" "<leader>lp";
|
2023-02-01 20:11:37 +01:00
|
|
|
|
2023-04-22 19:42:31 +02:00
|
|
|
codeAction = mkMappingOption "Code action [LSPSaga]" "<leader>ca";
|
|
|
|
|
2023-10-14 20:35:43 +02:00
|
|
|
signatureHelp = mkMappingOption "Signature help [LSPSaga]" "<leader>ls";
|
2023-04-22 19:42:31 +02:00
|
|
|
};
|
2023-02-01 20:11:37 +01:00
|
|
|
};
|
|
|
|
}
|