Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Co-authored-by: diniamo <[email protected]>
  • Loading branch information
horriblename and diniamo committed Nov 30, 2024
1 parent c814d7c commit c27e02a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/plugins/comments/comment-nvim/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ in {
setupModule = "Comment";
inherit (cfg) setupOpts;
keys = [
(mkKeymap ["n"] cfg.mappings.toggleOpLeaderLine "<Plug>(comment_toggle_linewise)" {desc = mappings.toggleOpLeaderLine.description;})
(mkKeymap ["n"] cfg.mappings.toggleOpLeaderBlock "<Plug>(comment_toggle_blockwise)" {desc = mappings.toggleOpLeaderBlock.description;})
(mkKeymap ["n"] cfg.mappings.toggleCurrentLine ''
(mkKeymap "n" cfg.mappings.toggleOpLeaderLine "<Plug>(comment_toggle_linewise)" {desc = mappings.toggleOpLeaderLine.description;})
(mkKeymap "n" cfg.mappings.toggleOpLeaderBlock "<Plug>(comment_toggle_blockwise)" {desc = mappings.toggleOpLeaderBlock.description;})
(mkKeymap "n" cfg.mappings.toggleCurrentLine ''
function()
return vim.api.nvim_get_vvar('count') == 0 and '<Plug>(comment_toggle_linewise_current)'
or '<Plug>(comment_toggle_linewise_count)'
Expand Down

0 comments on commit c27e02a

Please sign in to comment.