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",
|
"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,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue