mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 03:25:58 +01:00
27 lines
956 B
Nix
27 lines
956 B
Nix
{lib, ...}: let
|
|
inherit (lib.options) mkEnableOption;
|
|
inherit (lib.nvim.binds) mkMappingOption;
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
|
in {
|
|
options.vim.comments.comment-nvim = {
|
|
enable = mkEnableOption "smart and powerful comment plugin for neovim comment-nvim";
|
|
|
|
mappings = {
|
|
toggleCurrentLine = mkMappingOption "Toggle current line comment" "gcc";
|
|
toggleCurrentBlock = mkMappingOption "Toggle current block comment" "gbc";
|
|
|
|
toggleOpLeaderLine = mkMappingOption "Toggle line comment" "gc";
|
|
toggleOpLeaderBlock = mkMappingOption "Toggle block comment" "gb";
|
|
|
|
toggleSelectedLine = mkMappingOption "Toggle selected comment" "gc";
|
|
toggleSelectedBlock = mkMappingOption "Toggle selected block" "gb";
|
|
};
|
|
|
|
setupOpts = mkPluginSetupOption "Comment-nvim" {
|
|
mappings = {
|
|
basic = mkEnableOption "basic mappings";
|
|
extra = mkEnableOption "extra mappings";
|
|
};
|
|
};
|
|
};
|
|
}
|