mirror of
https://github.com/ilyakooo0/nvim-autopairs.git
synced 2024-09-11 07:15:44 +03:00
parent
823e469f6f
commit
2c296bd6cb
@ -334,7 +334,7 @@ Before Input After
|
||||
``` lua
|
||||
require('nvim-autopairs').disable()
|
||||
require('nvim-autopairs').enable()
|
||||
require('nvim-autopairs').remove_rule('(')-- remove rule (
|
||||
require('nvim-autopairs').remove_rule('(') -- remove rule (
|
||||
require('nvim-autopairs').clear_rules() -- clear all rule
|
||||
require('nvim-autopairs').get_rule('"') -- get rule " then modify it
|
||||
|
||||
|
@ -77,7 +77,7 @@ M.show = function(line)
|
||||
|
||||
M.highlight_wrap(list_pos, row)
|
||||
vim.defer_fn(function()
|
||||
local char = M.getchar_handler()
|
||||
local char = #list_pos == 1 and config.end_key or M.getchar_handler()
|
||||
for _, pos in pairs(list_pos) do
|
||||
if char == pos.key then
|
||||
M.move_bracket(line, pos.col, end_pair, pos.char)
|
||||
|
Loading…
Reference in New Issue
Block a user