mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-24 06:10:44 +00:00
23 lines
829 B
Nix
23 lines
829 B
Nix
{lib, ...}: let
|
|
inherit (lib.options) mkEnableOption;
|
|
inherit (lib.nvim.binds) mkMappingOption;
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
|
in {
|
|
options.vim.lsp = {
|
|
trouble = {
|
|
enable = mkEnableOption "trouble diagnostics viewer";
|
|
|
|
setupOpts = mkPluginSetupOption "Trouble" {};
|
|
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|