mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-23 03:48:01 +00:00

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
500 B
Nix
18 lines
500 B
Nix
{lib, ...}:
|
|
with lib; {
|
|
options.vim.lsp = {
|
|
nvimCodeActionMenu = {
|
|
enable = mkEnableOption "nvim code action menu";
|
|
|
|
show = {
|
|
details = mkEnableOption "Show details" // {default = true;};
|
|
diff = mkEnableOption "Show diff" // {default = true;};
|
|
actionKind = mkEnableOption "Show action kind" // {default = true;};
|
|
};
|
|
|
|
mappings = {
|
|
open = mkMappingOption "Open code action menu [nvim-code-action-menu]" "<leader>ca";
|
|
};
|
|
};
|
|
};
|
|
}
|