mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 13:50:44 +00:00
a452a0b0e7
mkEnableOption already adds the phrase "Whether to enable ..." to the beginning of the option description, such that the string argument should only be "thing to be enabled"
18 lines
647 B
Nix
18 lines
647 B
Nix
{lib, ...}:
|
|
with lib; {
|
|
options.vim.lsp = {
|
|
trouble = {
|
|
enable = mkEnableOption "trouble diagnostics viewer";
|
|
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|