mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 20:35:59 +01:00
18 lines
617 B
Nix
18 lines
617 B
Nix
{lib, ...}:
|
|
with lib;
|
|
with builtins; {
|
|
options.vim.comments.comment-nvim = {
|
|
enable = mkEnableOption "Enable 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";
|
|
};
|
|
};
|
|
}
|