diff --git a/flake.nix b/flake.nix index b7a1950..9252f33 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/lua/plugins/neotab-nvim.lua b/lua/plugins/neotab-nvim.lua new file mode 100644 index 0000000..810d175 --- /dev/null +++ b/lua/plugins/neotab-nvim.lua @@ -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 + }, + }, + }, + }, + }, + }, +}