diff --git a/stow/common/dot-config/nvim/lua/plugins.lua b/stow/common/dot-config/nvim/lua/plugins.lua index 20da03c..448c2b6 100644 --- a/stow/common/dot-config/nvim/lua/plugins.lua +++ b/stow/common/dot-config/nvim/lua/plugins.lua @@ -593,6 +593,17 @@ local plugins = { 'windwp/nvim-autopairs', event = "InsertEnter", opts = {}, + config = function(_, opts) + require('nvim-autopairs').setup(opts) + local Rule = require('nvim-autopairs.rule') + local npairs = require('nvim-autopairs') + npairs.add_rule( + Rule("$", "$", "tex") + :with_move(function(args) + return args.next_char == args.char + end) + ) + end, cond = not_vscode }, {