neovim: Actually fix autopair bracket behavior
This commit is contained in:
parent
c234673ca2
commit
e6f3ce6ba7
1 changed files with 6 additions and 4 deletions
|
|
@ -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,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue