feat: neotab.nvim
This commit is contained in:
parent
08dcbdaced
commit
01eaaac3d8
2 changed files with 36 additions and 0 deletions
|
@ -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
|
||||
|
|
30
lua/plugins/neotab-nvim.lua
Normal file
30
lua/plugins/neotab-nvim.lua
Normal 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
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue