Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
123456789101112131415161718require("mini.surround").setup()
local npairs = require("nvim-autopairs")local Rule = require("nvim-autopairs.rule")
npairs.setup({ check_ts = true, map_cr = true,})
local ts_conds = require("nvim-autopairs.ts-conds")
-- press % => %% only while inside a comment or stringnpairs.add_rules({ Rule("%", "%", "lua"):with_pair(ts_conds.is_ts_node({ "string", "comment" })), Rule("$", "$", "lua"):with_pair(ts_conds.is_not_ts_node({ "function" })),})