From ea02d7ce4cc025ae3d90542f3d044028d787c3e0 Mon Sep 17 00:00:00 2001 From: work Date: Wed, 27 Sep 2023 18:44:26 +0300 Subject: [PATCH] nvim : disable autoclose for text and markdown. --- .config/nvim/lua/plugin/autoclose.lua | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.config/nvim/lua/plugin/autoclose.lua b/.config/nvim/lua/plugin/autoclose.lua index 2bfb336..693d57d 100644 --- a/.config/nvim/lua/plugin/autoclose.lua +++ b/.config/nvim/lua/plugin/autoclose.lua @@ -1,10 +1,13 @@ require("autoclose").setup({ - keys = { - ["'"] = { escape = true, close = true, pair = "''", disabled_filetypes = {} }, - ["\""] = { escape = true, close = true, pair = "\"\"", disabled_filetypes = {} }, - ["{"] = { escape = true, close = true, pair = "{}", disabled_filetypes = {} }, - ["("] = { escape = true, close = true, pair = "()", disabled_filetypes = {} }, - ["<"] = { escape = true, close = true, pair = "<>", disabled_filetypes = {} }, - ["`"] = { escape = true, close = true, pair = "``", disabled_filetypes = {} }, - }, + keys = { + ["'"] = { escape = true, close = true, pair = "''", disabled_filetypes = {} }, + ["\""] = { escape = true, close = true, pair = "\"\"", disabled_filetypes = {} }, + ["{"] = { escape = true, close = true, pair = "{}", disabled_filetypes = {} }, + ["("] = { escape = true, close = true, pair = "()", disabled_filetypes = {} }, + ["<"] = { escape = true, close = true, pair = "<>", disabled_filetypes = {} }, + ["`"] = { escape = true, close = true, pair = "``", disabled_filetypes = {} }, + }, + options = { + disabled_filetypes = { "text", "markdown" }, + } })