mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-24 04:09:49 +01:00
22 lines
823 B
Nix
22 lines
823 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 = {
|
|
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";
|
|
symbols = mkMappingOption "Symbols [trouble]" "<leader>xs";
|
|
};
|
|
};
|
|
};
|
|
}
|