This plugin is a Neovim plugin to use autopairs like "「」" with IME.
sv-jppair.nvimは、"「」"などの、IMEを使用した括弧の自動補完をするためのNeovimプラグインです。
It works correctly even when parentheses are entered using an IME.
IMEを使用した括弧の場合でも、正常に動作します。
- Neovim 0.9+
return {
"SetsuVim/sv-jppair.nvim",
event = "InsertEnter",
opts = {
-- your options here.
},
}
{
-- Cursor position after inserting pair
-- "inside": 「|」
-- "after": 「」|
cursor_position = "inside",
-- Skip automatically generated closing brackets
-- Example:
-- Input: 「
-- Result: 「|」
--
-- Input: 」
-- Result: 「」|
close_skip = true,
-- Define pairs
-- The key is the opening character,
-- and the value is the closing character.
pairs = {
["("] = ")",
["["] = "]",
["{"] = "}",
["「"] = "」",
["『"] = "』",
["("] = ")",
["【"] = "】",
["〈"] = "〉",
["《"] = "》",
["〔"] = "〕",
["["] = "]",
["{"] = "}",
["<"] = ">",
},
}