Commit Graph

146 Commits

Author SHA1 Message Date
Lopy
e239a560f3
feat: allow to be lazy loaded on InsertEnter (#212) 2024-08-27 17:42:20 -05:00
Angel Kozlev
0cb76eea80
fix: Don't auto tag fragment if not in jsx (#210) 2024-08-15 00:12:53 +00:00
Andrey Chalkin
dc5e1687ab
feat: added alias for htmlangular (#208) 2024-07-23 21:16:23 +00:00
b0ca116ee1
feat: enable autotag in elixir fts (#206)
See https://github.com/windwp/nvim-ts-autotag/issues/200
2024-07-23 21:14:37 +00:00
1624866a13
Merge pull request #201 from inferst/fix/tsx-node-renaming
fix: tsx node renaming
2024-07-16 13:50:01 -05:00
Mikhail Morozov
7f9f55b285 chore: move text node filtering to utils function 2024-07-16 14:26:15 +03:00
Mikhail Morozov
0782035107 Merge branch 'main' of github.com:inferst/nvim-ts-autotag into fix/tsx-node-renaming 2024-07-15 01:46:33 +03:00
26c365cc7d
test(refactor): remove invalid test plugins (#204)
- `popup.nvim` is not referenced anywhere within the plugin and as such
  should be removed.
- `playground` is not needed either, it's not referenced and secondly
  the most important feature from it (:TSPlayground) is covered by
  Neovim's :InspectTree command in more recent versions of Neovim.

Closes #203 (https://github.com/windwp/nvim-ts-autotag/issues/203)
2024-07-14 16:47:15 -05:00
987cfa5e0f
Merge pull request #202 from roycrippen4/fix-#199
feat: support react fragments
2024-07-14 16:39:29 -05:00
roy.crippen4
33a38a53b1 chore: formatting and clarification comment 2024-07-14 17:36:32 -04:00
roycrippen4
2553ac5520
Update lua/nvim-ts-autotag/utils.lua
Co-authored-by: Price Hiller <price@orion-technologies.io>
2024-07-14 17:35:03 -04:00
roy.crippen4
cbe184f12d fix/refactor: Auto-close react fragments
Refactor: Moved detection functions into `utils.lua`
Fix: Improved react detection logic in `.js` files
2024-07-14 16:49:42 -04:00
roy.crippen4
4ab5a1fd9f test(react): Testing for auto-close react fragments in js and tsx files 2024-07-14 16:48:35 -04:00
roycrippen4
a485f97de9 Merge branch 'windwp:main' into fix-#199 2024-07-14 15:04:57 -04:00
roy.crippen4
f4528df26e fix(#199): Auto-tag react fragments
Detects if `<>` was typed in a react file (`js`, `jsx`, or `tsx`)
and autocloses the fragment tag.
2024-07-14 13:30:49 -04:00
Mikhail Morozov
220fe15d97 fix: tsx node renaming 2024-07-13 14:32:00 +03:00
windwp
323a3e16ed fix: map Insertleave by buffer. 2024-07-07 15:07:44 +07:00
ddfccbf0df
Merge pull request #198 from mbromell/patch-1
fix: error message when using nvim-treesitter 'main' branch
2024-06-21 13:56:10 -05:00
mbromell
30aea007e0
Stop error message when using 'main' branch treesitter 2024-06-19 21:00:25 +01:00
06fe07d752
refactor: extract did_setup to Setup method 2024-06-11 17:34:47 -05:00
2692808eca
fix: ensure rename works when switching buffers
Related to #189
2024-06-10 16:28:03 -05:00
Victor Batarse
e0506426a4
Add rust file supports (#194)
* Update plugin.lua

added rust

* trying to update autoclose

* format

* Update plugin.lua

* Update plugin.lua

* Update plugin.lua

* format with stylua
2024-06-10 13:25:32 -05:00
seanbreckenridge
b873197cc5
use ? instead of nil
Co-authored-by: Price Hiller <price@orion-technologies.io>
2024-06-01 20:28:48 -07:00
Sean Breckenridge
ced3f1c780 fix: update luadoc to allow for empty setup call 2024-06-01 14:52:28 -07:00
bcf3146864
test: add tests for the templ filetype
Closes #179
2024-05-29 12:39:59 -05:00
e907a7ebe2
docs: add note about treesitter parsers
Closes #186
2024-05-29 12:28:08 -05:00
8ae54b90e3
Merge pull request #184 from cbochs/fix-183
fix: wrap vim.treesitter.get_parser in pcall
2024-05-22 18:20:40 -05:00
Calvin Bochulak
3d96e2c9f1
fix: add pcall to other uses of vim.treesitter.get_parser 2024-05-22 16:58:47 -06:00
Calvin Bochulak
5c93dfdfb3
fix: wrap vim.treesitter.get_parser in pcall 2024-05-22 16:47:43 -06:00
62db4b3054 ci: add nvim 0.9.5 to test against
Closes #176
2024-05-21 14:22:18 -05:00
57daea0208 docs: add section about lazy loading to README
Closes #178
2024-05-21 14:17:46 -05:00
796fbadfcf chore: remove loose/unused file 2024-05-21 14:16:22 -05:00
axzilla
6f38e4231c fix: auto renaming for Templ files 2024-05-21 09:46:34 -05:00
cb57b07803
Merge pull request #175 from PriceHiller/fix/0.9.5-funcs
fix: use `0.9.5` compatible vim funcs
2024-05-19 22:00:04 -05:00
5121204c85
fix: use 0.9.5 compatible vim funcs 2024-05-19 21:58:25 -05:00
windwp
eed5c76e33 update README 2024-05-20 08:35:32 +07:00
3c5f849ebd Revert "docs: replace Sponsor in README with Fork Status"
This reverts commit 9b90325db1.
2024-05-20 08:17:52 +07:00
aaf8135ba7 fix: remove hanging end 2024-05-20 08:17:52 +07:00
2e50d55b3e ci: use nvim 0.10.0 2024-05-20 08:17:52 +07:00
3b57ed40bd Revert 14e1f22 'ci: use self-hosted runner' 2024-05-20 08:17:52 +07:00
db79e81f2f Revert 1aff7cb 'ci: add Lint stage' 2024-05-20 08:17:52 +07:00
76aec98de7 ci: add Lint stage 2024-05-20 08:17:52 +07:00
ca8539e5ef docs!: require >= nvim 0.9.5 2024-05-20 08:17:52 +07:00
f489945bdd refactor: private did_setup opt in Setup 2024-05-20 08:17:52 +07:00
973f223d9c docs: update README setup example 2024-05-20 08:17:52 +07:00
e674db4ca1 fix: correctly check for legacy setup 2024-05-20 08:17:52 +07:00
971547b9ac refactor: pcall require on nvim-treesitter.configs
`nvim-treesitter.configs` is going to be removed soon -- directly requiring it will cause an error once it has been removed.
2024-05-20 08:17:52 +07:00
08e9ada208 feat!: overhaul the config setup
This deprecates the old setup layout

Closes https://github.com/PriceHiller/nvim-ts-autotag/issues/5
2024-05-20 08:17:52 +07:00
7a9843f469 fix: correctly attach to supported buffers
Closes https://github.com/PriceHiller/nvim-ts-autotag/issues/7
2024-05-20 08:17:52 +07:00
1550f128bd refactor: simplify internal setup 2024-05-20 08:17:52 +07:00