marleyvim/lua/plugins/neotab-nvim.lua

31 lines
679 B
Lua
Raw Normal View History

2025-03-16 23:54:43 +00:00
return {
{
'kawre/neotab.nvim',
event = 'InsertEnter',
opts = {
behavior = 'closing',
smart_punctuators = {
enabled = true,
semicolon = {
enabled = true,
ft = { 'javascript', 'typescript', 'php', 'nix' },
},
escape = {
enabled = true,
triggers = {
['='] = {
pairs = {
{ open = '(', close = ')' },
},
ft = { 'javascript', 'typescript' },
format = ' %s> ', -- () => ...
cond = '^$', -- match only pairs with empty content
},
},
},
},
},
},
}