Skip to content

Commit 3764560

Browse files
committed
update
1 parent 7d334a6 commit 3764560

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
A simple pairs plugin written in FP style using Lua.
44

5+
# Install
6+
7+
install with any plugin manager or built-in package.
8+
9+
no setup function is used, fnpairs will work after loaded.
10+
below are default pairs list.
11+
512
```lua
613
-- BracketPair ADT
714
local BracketPair = {

plugin/fnpairs.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if vim.g.load_fnpairs ~= nil then
2+
return
3+
end
4+
5+
vim.g.load_fnpairs = true
6+
7+
require('fnpairs').setup()

0 commit comments

Comments
 (0)