mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-12-04 18:37:17 +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"
19 lines
500 B
Nix
19 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";
|
|
};
|
|
};
|
|
};
|
|
}
|