local insx = require("insx") -- insx.add("", { -- enabled = function(ctx) -- return ctx.filetype == "nix" and ctx.match([[=\%#$]]) -- end, -- action = function(ctx) -- ctx.send(';') -- end -- }) insx.add( "", insx.with( require("insx.recipe.substitute")({ pattern = [[ =\%#]], replace = [[ = \%#;]], }), { insx.with.filetype("nix"), } ) )