2023-11-07 00:50:27 +00:00
|
|
|
{lib, ...}: let
|
2024-02-26 05:05:23 +00:00
|
|
|
inherit (lib.options) mkEnableOption;
|
|
|
|
inherit (lib.nvim.binds) mkMappingOption;
|
2024-11-04 15:50:50 +00:00
|
|
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
2023-11-07 00:50:27 +00:00
|
|
|
in {
|
2023-02-16 20:32:46 +00:00
|
|
|
options.vim.comments.comment-nvim = {
|
2023-06-05 20:10:25 +00:00
|
|
|
enable = mkEnableOption "smart and powerful comment plugin for neovim comment-nvim";
|
2023-04-12 21:58:09 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
2024-11-04 15:50:50 +00:00
|
|
|
|
|
|
|
setupOpts = mkPluginSetupOption "Comment-nvim" {
|
|
|
|
mappings = {
|
|
|
|
basic = mkEnableOption "basic mappings";
|
|
|
|
extra = mkEnableOption "extra mappings";
|
|
|
|
};
|
|
|
|
};
|
2023-02-16 20:32:46 +00:00
|
|
|
};
|
|
|
|
}
|