neovim-flake/modules/comments/comment-nvim/comment-nvim.nix

19 lines
617 B
Nix
Raw Permalink Normal View History

2023-04-12 23:58:09 +02:00
{lib, ...}:
with lib;
2023-03-31 04:20:35 +02:00
with builtins; {
options.vim.comments.comment-nvim = {
enable = mkEnableOption "Enable comment-nvim";
2023-04-12 23:58:09 +02: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";
};
};
}