1
0
Fork 0

neovim: Actually fix autopair bracket behavior

This commit is contained in:
Jeremy Kaplan 2023-05-22 21:45:16 -07:00
commit e6f3ce6ba7

View file

@ -273,16 +273,18 @@ plugins = {
"windwp/nvim-autopairs", "windwp/nvim-autopairs",
opts = { opts = {
map_cr = true, map_cr = true,
enable_moveright = false, enable_moveright = true,
enable_check_bracket_line = true, enable_check_bracket_line = false,
check_ts = true, check_ts = true,
}, },
config = function(_plugin, opts) config = function(_plugin, opts)
local npairs = require("nvim-autopairs") local npairs = require("nvim-autopairs")
local conds = require("nvim-autopairs.conds")
npairs.setup(opts) npairs.setup(opts)
-- Allow tick-quoting in Lisps -- Allow Lisp tick-quotes. The non-Rust rule happens to be the
npairs.get_rule("'")[1].not_filetypes = { "clojure", "lisp", "scheme" } -- first one.
npairs.get_rules("'")[1].not_filetypes = { "clojure", "lisp", "scheme" }
end, end,
}, },
{ {