# Comment toggling plugin { config, lib, ... }: { config.programs.nixvim.plugins.comment = lib.mkIf config.development.nixvim.enable { enable = true; settings = { toggler = { line = "cc"; # toggle line comment block = "cb"; # toggle block comment }; opleader = { line = "cc"; # toggle line comment block = "cb"; # toggle block comment }; extra = { above = "cu"; # add comment line above below = "cd"; # add comment line below eol = "ce"; # add comment at end of line }; }; }; }