feat: neotab.nvim

This commit is contained in:
punkfairie 2025-03-16 16:54:43 -07:00
parent 08dcbdaced
commit 01eaaac3d8
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
2 changed files with 36 additions and 0 deletions

View file

@ -27,6 +27,11 @@
url = "github:2kabhishek/nerdy.nvim";
flake = false;
};
"plugins-neotab.nvim" = {
url = "github:kawre/neotab.nvim";
flake = false;
};
};
nixConfig = {
@ -309,6 +314,7 @@
cutlass-nvim
diffview-nvim
lexima-vim
neotab-nvim
nerdy-nvim
nvim-emmet
rose-pine

View file

@ -0,0 +1,30 @@
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
},
},
},
},
},
},
}