Skip to content

A treesitter supported autopairing plugin with extensions, and much more

License

Notifications You must be signed in to change notification settings

inogai/ultimate-autopair.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ultimate-autopair.nvim

This is a personal fork of the altermo/ultimate-autopair.nvim. Query the original repository for more information.

Changes

Added a new extension surroundtsnode.

Instead of surrounding the pairs with where internal_pairs[{idx}].surround is true, it will surround the topmost TSNode that immediately follows the cursor.

It still obeys the internal_pairs[{idx}].dosurround option.

Enable it as follows:

local ua = require("ultimate-autopair")
local configs = {
  ua.extend_default({
    ...
    extensions = {
      ...
      surroundtsnode = { p = 20 },
      suround = { p = 0 },
    },
  }),
}
ua.init(configs)

About

A treesitter supported autopairing plugin with extensions, and much more

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%