Skip to content

mgnsk/dumb-autopairs.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dumb-autopairs.nvim

A dumb autopairs plugin for Neovim that tries not to get in your way.

It handles inserting closing braces/quotes, <CR> and <BS>. It does not attempt to wrap existing text.

<CR> works best with these settings:

vim.o.autoindent = true
vim.cmd("filetype plugin indent on")

Installation

Using your favourite package manager:

{
    "mgnsk/dumb-autopairs.nvim",
    event = "InsertEnter",
    opts = {},
},

Default config

{
    pairs = {
        {
            left = "(",
            right = ")",
        },
        {
            left = "[",
            right = "]",
        },
        {
            left = "{",
            right = "}",
        },
        {
            left = '"',
            right = '"',
        },
        {
            left = "'",
            right = "'",
        },
        {
            left = "`",
            right = "`",
        },
    },
}

Note: only single-character braces/quotes are supported.

About

dumb autopairs for neovim written in lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published