Skip to content

About

A Neovim plugin to use autopairs with IME.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

sv-jppair.nvim

A Neovim plugin to use autopairs with IME.

Built for Neovim Required Neovim 0.9+
License

✨ 概要 - Overview -

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を使用した括弧の場合でも、正常に動作します。

💼 依存関係 - Dependencies -

🔧 インストール - Install -

In Neovim

lazy.nvim

return {
    "SetsuVim/sv-jppair.nvim",
    event = "InsertEnter",
    opts = {
        -- your options here.
    },
}

🛠️ オプション - Options -

{
    -- 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 = {
        ["("] = ")",
        ["["] = "]",
        ["{"] = "}",

        ["「"] = "」",
        ["『"] = "』",
        ["("] = ")",
        ["【"] = "】",
        ["〈"] = "〉",
        ["《"] = "》",
        ["〔"] = "〕",
        ["["] = "]",
        ["{"] = "}",
        ["<"] = ">",
    },
}

About

A Neovim plugin to use autopairs with IME.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages