ahora disablea minipairs en global

pull/1/head
borja 1 year ago
parent 10b54cf7c2
commit 12fda85a63

@ -1,9 +1,9 @@
vim.keymap.set("n", "<leader>t", function() end, { desc = "+Todos" }) vim.keymap.set("n", "<leader>t", function() end, { desc = "+Todos" })
-- add new todo line when previous is already a todo -- add new todo line when previous is already a todo
vim.g.minipairs_disable = true
local function press_enter() local function press_enter()
vim.b.minipairs_disable = true
local current_line = vim.api.nvim_get_current_line() local current_line = vim.api.nvim_get_current_line()
-- Check if the current line matches the pattern -- Check if the current line matches the pattern
local pattern = "^%- %[[ x]%] .*$" local pattern = "^%- %[[ x]%] .*$"

Loading…
Cancel
Save