mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
47 lines
1 KiB
Lua
47 lines
1 KiB
Lua
return {
|
|
"saghen/blink.pairs",
|
|
version = "*", -- use prebuilt version
|
|
event = "BufEnter",
|
|
|
|
-- download binary
|
|
dependencies = "saghen/blink.download",
|
|
|
|
--- @module 'blink.pairs'
|
|
--- @type blink.pairs.Config
|
|
opts = {
|
|
mappings = {
|
|
enabled = true,
|
|
cmdline = true,
|
|
disabled_filetypes = {},
|
|
-- https://github.com/Saghen/blink.pairs/blob/main/lua/blink/pairs/config/mappings.lua#24
|
|
-- Battery included!
|
|
pairs = {
|
|
["'"] = {
|
|
"''",
|
|
when = function(ctx)
|
|
return ctx:text_before_cursor(1) == "'"
|
|
end,
|
|
languages = { "nix" },
|
|
},
|
|
},
|
|
},
|
|
highlights = {
|
|
enabled = true,
|
|
cmdline = true,
|
|
groups = {
|
|
"BlinkPairsOrange",
|
|
"BlinkPairsPurple",
|
|
"BlinkPairsBlue",
|
|
},
|
|
unmatched_group = "BlinkPairsUnmatched",
|
|
|
|
matchparen = {
|
|
enabled = true,
|
|
cmdline = false,
|
|
include_surrounding = false,
|
|
group = "BlinkPairsMatchParen",
|
|
priority = 250,
|
|
},
|
|
},
|
|
},
|
|
}
|