nvim : disable autoclose for text and markdown.

This commit is contained in:
Dmitry Voronin 2023-09-27 18:44:26 +03:00
parent cdc2347cdf
commit ea02d7ce4c

View file

@ -1,10 +1,13 @@
require("autoclose").setup({ require("autoclose").setup({
keys = { 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 = {} },
["("] = { 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" },
}
}) })