mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 05:45:58 +01: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
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";
|
|
};
|
|
};
|
|
};
|
|
}
|