Skip to content
Projetos

altermo/ultimate-autopair.nvim

Ver no GitHub

Sobre

Plugin de autopar compatível com Tree-sitter, com extensões e muito mais.

Ferramentas de desenvolvimento

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
+1
em 15 dias
+1
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

:exclamation: Ultimate-autopair is currently in maintenance mode, no new features will be added in the near future

Ultimate-autopair.nvim 0.6.1

Ultimate-autopair plugin aims to always work as you expect and be ultra customizable, while making it easy to configure. It has features which other auto-pairing plugins lack: multiline support, treesitter-node filtering and treesitter-filetype detection.

For development version, which is sometimes up to date with default branch, check out development
Requires neovim 0.9 (for older versions of neovim, check previous versions of plugin)
For some features, including string filtering, requires treesitter.

For new users, check out starter documentation (:help ultimate-autopair)

You can test out the (non-finished) next version here: v0.7

Installation

Lazy
{
    'altermo/ultimate-autopair.nvim',
    event={'InsertEnter','CmdlineEnter'},
    branch='v0.6', --recommended as each new version will have breaking changes
    opts={
        --Config goes here
    },
}
Packer
use{
    'altermo/ultimate-autopair.nvim',
    event={'InsertEnter','CmdlineEnter'},
    branch='v0.6', --recommended as each new version will have breaking changes
    config=function ()
        require('ultimate-autopair').setup({
                --Config goes here
                })
    end,
}

Default configuration

For the default configuration, refer to the documentation (:help ultimate-autopair-default-config).

Demo

demo

demo

Other plugins to supercharge auto-pairing

These are some other plugins which are related to pairing which have features that ultimate-autopair does not have.

  • endwise wisely add end in lua, ruby, etc... (Note: doesn't get broken by ultimate-autopair's newline)
  • tabout tab out of treesitter nodes
  • surround delete, change surrounding parentheses and much more...
  • autotag auto pair html tags

If you want to use this together with nvim-autopairs read :h ultimate-autopair-use-with-npairs

Donate

If you want to donate then you need to find the correct link (hint: 50₁₀):

Chat

Explore projetos relacionados

Carregando…