From e6f3ce6ba7fa487b829596ad620d79713f947838 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Mon, 22 May 2023 21:45:16 -0700 Subject: [PATCH] neovim: Actually fix autopair bracket behavior --- neovim/init.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/neovim/init.lua b/neovim/init.lua index 02a82a5..6b48747 100644 --- a/neovim/init.lua +++ b/neovim/init.lua @@ -273,16 +273,18 @@ plugins = { "windwp/nvim-autopairs", opts = { map_cr = true, - enable_moveright = false, - enable_check_bracket_line = true, + enable_moveright = true, + enable_check_bracket_line = false, check_ts = true, }, config = function(_plugin, opts) local npairs = require("nvim-autopairs") + local conds = require("nvim-autopairs.conds") npairs.setup(opts) - -- Allow tick-quoting in Lisps - npairs.get_rule("'")[1].not_filetypes = { "clojure", "lisp", "scheme" } + -- Allow Lisp tick-quotes. The non-Rust rule happens to be the + -- first one. + npairs.get_rules("'")[1].not_filetypes = { "clojure", "lisp", "scheme" } end, }, {