Commit Graph

104 Commits

Author SHA1 Message Date
1aff7cb8ed
ci: add Lint stage 2024-05-18 04:34:35 -05:00
38ac929e15
docs!: require >= nvim 0.9.5 2024-05-18 03:39:33 -05:00
d06dc900f3
refactor: private did_setup opt in Setup 2024-05-18 03:39:33 -05:00
98fca9bf0e
docs: update README setup example 2024-05-18 03:39:33 -05:00
ccb2a827f2
fix: correctly check for legacy setup 2024-05-15 09:50:50 -05:00
c2bd871627
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-15 09:22:41 -05:00
62f606918b
feat!: overhaul the config setup
This deprecates the old setup layout

Closes https://github.com/PriceHiller/nvim-ts-autotag/issues/5
2024-05-15 09:22:41 -05:00
e2a5a12492
fix: correctly attach to supported buffers
Closes https://github.com/PriceHiller/nvim-ts-autotag/issues/7
2024-05-15 03:00:55 -05:00
9ce1d3765b
refactor: simplify internal setup 2024-05-15 02:09:50 -05:00
5578f796de
feat!: remove hard dependency on nvim-treesitter
This has deprecated `nvim-treesitter` setup. It has *not* been removed
yet.

I intend to tag the previous commit to this as `0.1.0` and then fully
remove `nvim-treesitter` setup support in `1.0.0` -- a breaking change.

TODO: We *must* have a way of detaching the plugin for a given buffer or even globally. Currently the plugin does not have it's own capabilities to do so.
2024-05-15 01:47:44 -05:00
968b2ccc5d
refactor: remove useless/empty function 2024-05-14 16:54:55 -05:00
0dcfc4149f
refactor: use vim.keymap.set for bindings 2024-05-13 19:08:43 -05:00
0291c8c637
style: remove stylua ignores 2024-05-13 17:07:00 -05:00
14e1f22a0d
ci: use self-hosted runner 2024-05-13 16:52:56 -05:00
ef175229a6
ci: update os to ubuntu-24.04 2024-05-13 14:58:16 -05:00
b146a98159
ci: install tree-sitter-cli 2024-05-13 14:56:07 -05:00
b9a588ed7e
ci: remove old test cruft 2024-05-13 14:53:52 -05:00
a92a4e97ec
fix: force a full reparse of ts source
PERF: This will impact performance, something to keep an eye on.

Prior to this commit, some parsers like php were failing in tests. By
forcing a full reparse, the php parser among others get the correct
tree.
2024-05-13 14:49:32 -05:00
81d0c78475
test: improve treesitter setup 2024-05-13 14:22:41 -05:00
94758d5394
refactor: move .luarc.json to toplevel 2024-05-13 13:40:00 -05:00
25db9a0912
test: actually call nvim-treesitter.configs setup 2024-05-13 13:40:00 -05:00
7c2e60f9e8
test: use sync install for ts parsers 2024-05-13 13:40:00 -05:00
e9e94e7fc5
fix: reparse source if the node has changes 2024-05-13 12:58:15 -05:00
Yussef Dalton
462b04fd96
Add Blade filetype
The only thing that's missing is it doesn't indent properly when you
close a tag, but otherwise it closes properly.
2024-05-13 12:58:15 -05:00
6e69cc2751
ci: use neovim nightly 2024-05-13 12:58:15 -05:00
4aee573e50
test: overhaul test setup and make commands 2024-05-13 12:58:14 -05:00
04089f0b7d
refactor: migrate plugin/ file to lua from vimscript 2024-05-13 05:02:17 -05:00
34f6d24007
style: format with stylua 2024-05-13 04:57:23 -05:00
bc8dea7a78
fix(svelte): use correct close tag patterns
See https://github.com/windwp/nvim-ts-autotag/pull/167

Co-authored-by: "roy.crippen4" <roy.crippen4@archarithms.com>
2024-05-13 04:37:33 -05:00
Léo DEVILLE
6bf91cad7e
Add twig filetype
See https://github.com/windwp/nvim-ts-autotag/pull/169

Signed-off-by: Price Hiller <price@orion-technologies.io>
Co-authored-by: Ystri0n <164430108+Ystri0n@users.noreply.github.com>
2024-05-13 04:36:54 -05:00
629011167b
docs: use correct option: skip_tags -> skip_tag
See https://github.com/windwp/nvim-ts-autotag/pull/170

Co-authored-by: nicoqh <nicoqh@gmail.com>
2024-05-13 04:35:59 -05:00
a062fe5f7d
docs: replace Sponsor in README with Fork Status 2024-05-13 04:14:23 -05:00
79884fb3b3
fix: update tag patterns to support new XML TS tags 2024-03-07 10:42:21 -06:00
Anthony Poschen
531f48334c
Templ tag completion (#154)
* feat: added support for templ

* chore: try this?

* chore: maybe this

* feat: added templ tag closing for html tags

* chore: change quotations back
2024-02-07 07:29:49 +07:00
Sergey Slipchenko
a65b202cfd Make sure close can be actually disabled 2024-01-25 16:19:58 +07:00
soufiane nassih
8619a63750
Detach affected buffer only. (#144) 2024-01-25 16:17:01 +07:00
windwp
8515e48a27 fix bug and update 2023-12-10 15:01:33 +07:00
zztrieuzz
6be1192965 fix: allow disable 2023-06-16 09:48:52 +07:00
Gungun974
e254b306fb
feat: Add close tag after inputting / (#116)
* Add close tag on slash

* Add tests for close tag on slash

* Simplify "find_start_tag" function with reusing existing "find_child_match"
2023-06-14 13:59:43 +07:00
Slotos
40615e9607
Add eruby defaults (#104)
* Fix minimal test setup

Inclusion of any config with `-u` also adds `~/.config/nvim/pack/*/start/*`
to rtp, which is probably the reason for tests passing on developers'
machines. This "problem" remains, and can in fact break tests through
interference with other plugins.

* Add eruby to default list of filetypes

This merely adds tests and one line of data to default setup values.
2023-04-28 05:19:09 +07:00
zztrieuzz
26761ba684 format 2023-04-20 20:40:35 +07:00
zztrieuzz
59840f6f2f fix #103 2023-04-20 20:26:02 +07:00
Simon Ward
cac97f3b47
Add astro filetype (#89)
* Add astro filetype to internal

* Remove autoformatting, update README

- Revert formatting to original
- Update supported filetypes in README
2023-04-13 19:06:12 +07:00
Alex
0716740e00
Fix conflict with coq_nvim
* fix coq_nvim conflict... using gpt3.5turbo

* delete unnecessary comment
2023-04-12 19:12:16 +07:00
Benny Powers
b525525b6a
feat: embed template tags (#78)
* refactor: use lua apis to bind keys

* refactor: use nvim lua api for rename aucmd

* fix: callback for autoclose use nvim_win_set_cursor

* feat: support html in js template tags

fix: add default bufnr when creating bindings

test: lit templates

fix: template strings
2023-04-10 14:53:39 +07:00
TheSafdarAwan
7a1c677985 fix: vim.treesitter.query.get_node_text deprecated 2023-04-08 09:44:09 +07:00
zztrieuzz
25698e4033 fix: not rename and close tag on some case 2023-03-17 09:19:45 +07:00
zztrieuzz
1062700edf update ci 2023-03-17 09:19:39 +07:00
windwp
fdefe46c68 update FUNDING 2022-08-11 19:06:19 +07:00
zztrieuzz
044a05c4c5 fix #60 2022-04-22 08:46:34 +07:00