diff options
| author | LostNeophyte <[email protected]> | 2023-01-25 11:08:06 +0100 | 
|---|---|---|
| committer | LostNeophyte <[email protected]> | 2023-01-25 11:08:06 +0100 | 
| commit | 27af1c294b5e6b50547fd55bbc8e65e5f64b911a (patch) | |
| tree | ec774f4d204dab0ae7c603c9e619667a84592422 | |
| parent | db4f98ec87d62a619e0b62e9ea5f4b80659f129d (diff) | |
| parent | 8ea68830a0212047aae924cc32ef9d7bb3bb270b (diff) | |
Merge remote-tracking branch 'origin/master' into perf/lazyloading
| -rw-r--r-- | lua/lvim/core/autopairs.lua | 12 | 
1 files changed, 0 insertions, 12 deletions
| diff --git a/lua/lvim/core/autopairs.lua b/lua/lvim/core/autopairs.lua index 298b0e1a..b9b66683 100644 --- a/lua/lvim/core/autopairs.lua +++ b/lua/lvim/core/autopairs.lua @@ -55,7 +55,6 @@ M.setup = function()    if not status_ok then      return    end -  local Rule = require "nvim-autopairs.rule"    autopairs.setup {      check_ts = lvim.builtin.autopairs.check_ts, @@ -72,17 +71,6 @@ M.setup = function()      fast_wrap = lvim.builtin.autopairs.fast_wrap,    } -  require("nvim-treesitter.configs").setup { autopairs = { enable = true } } - -  local ts_conds = require "nvim-autopairs.ts-conds" - -  -- TODO: can these rules be safely added from "config.lua" ? -  -- press % => %% is only inside comment or string -  autopairs.add_rules { -    Rule("%", "%", "lua"):with_pair(ts_conds.is_ts_node { "string", "comment" }), -    Rule("$", "$", "lua"):with_pair(ts_conds.is_not_ts_node { "function" }), -  } -    if lvim.builtin.autopairs.on_config_done then      lvim.builtin.autopairs.on_config_done(autopairs)    end | 
