mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-28 10:49:48 +01:00
19 lines
545 B
Nix
19 lines
545 B
Nix
{lib, ...}: let
|
|
inherit (lib) mkEnableOption mkMappingOption;
|
|
in {
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|