comment-nvim: fix visual mappings (#417)

This commit is contained in:
diniamo 2024-10-15 18:05:05 +02:00 committed by GitHub
parent a7e0542fd0
commit 54ec473039
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,9 +12,7 @@
inherit (self.options.vim.comments.comment-nvim) mappings;
in {
config = mkIf cfg.enable {
vim.startPlugins = [
"comment-nvim"
];
vim.startPlugins = ["comment-nvim"];
vim.maps.normal = mkMerge [
(mkBinding cfg.mappings.toggleOpLeaderLine "<Plug>(comment_toggle_linewise)" mappings.toggleOpLeaderLine.description)
@ -36,7 +34,7 @@ in {
mappings.toggleCurrentBlock.description)
];
vim.maps.visualOnly = mkMerge [
vim.maps.visual = mkMerge [
(mkBinding cfg.mappings.toggleSelectedLine "<Plug>(comment_toggle_linewise_visual)" mappings.toggleSelectedLine.description)
(mkBinding cfg.mappings.toggleSelectedBlock "<Plug>(comment_toggle_blockwise_visual)" mappings.toggleSelectedBlock.description)
];