Commit graph

262 commits

Author SHA1 Message Date
L3MON4D3
7ad2eaeaca Format with stylua 2024-08-20 20:21:31 +00:00
L3MON4D3
838b2668c5 remove select_keys, just allow direct access to pre_yank and post_yank. 2024-08-20 22:20:40 +02:00
L3MON4D3
b84eeb3641 Format with stylua 2024-08-06 21:26:37 +00:00
L3MON4D3
9033373173 feat: allow modifying expand-position in pre_expand-callback (#1219). 2024-08-06 23:23:53 +02:00
L3MON4D3
5a0ce2b764 Format with stylua 2024-08-01 11:55:41 +02:00
L3MON4D3
d7908de5d9 add tests for snippet syntax and ftplugin. 2024-08-01 11:55:41 +02:00
L3MON4D3
ce0a05ab4e Format with stylua 2024-06-28 20:24:07 +00:00
L3MON4D3
93abea587d Format with stylua 2024-06-28 20:12:15 +00:00
L3MON4D3
365bebd79a fix(loaders): trim whitespace around comma and at start/end of "scope".
Closes #1199.
Apparently this is supported by vscode, and its' no biggie, so let's
just do it too.
2024-06-28 22:07:17 +02:00
L3MON4D3
ee20ddd026 test: fix some more flakiness. 2024-06-28 21:56:47 +02:00
xudyang1
d890d6d6b9
fix(util): Path.parent now works on windows (#1168) (#1180)
On Windows, both forward slash `/` and backslash `\\` work as the path
separator. Linux and MacOS can have backslash as a valid filename
character.

Unit tests are also provided for each platform because `Path.parent`
depends on the local variable `sep` which depends on `jit.os`.

Fixes #1168
2024-05-24 09:34:09 +02:00
L3MON4D3
de1a287c9c Format with stylua 2024-05-18 06:37:40 +00:00
L3MON4D3
20448f4573 fix: stay compatible with old nvim-versions.
they don't have vim.list_contains.
2024-05-18 08:31:20 +02:00
L3MON4D3
78296bfabf Format with stylua 2024-05-16 15:49:15 +00:00
L3MON4D3
6f23556cff fswatch: move-to <=> change (close #1171). 2024-05-16 17:43:02 +02:00
L3MON4D3
7b1dda0dfd Format with stylua 2024-05-14 10:34:10 +00:00
L3MON4D3
2b7395217e vscode-loader: correctly handle symlinked package.json (close #1170). 2024-05-14 12:23:30 +02:00
gokberkgunes
0a4e557017
Exit snippets upon jumping to $0 (close #1161)
This restores the pre-d9cb6ab-behaviour of completely leaving a snippet once $0 is reached, instead of leaving the possibility of jumping back into it.
This behaviour can be turned on or off via `exit_roots`, and, like the other settings that superseded `history`, `exit_roots` will be set s.t. `history` still/again behaves as expected.
2024-04-30 12:38:47 +02:00
L3MON4D3
820d623824 fix: adjust name of test-helper-file.
also: flakiness :|
2024-04-24 22:02:16 +02:00
L3MON4D3
72eea98b19 Format with stylua 2024-04-21 09:14:02 +00:00
L3MON4D3
c071d3c6da tests: fix new loaders-test for nvim0.7 and 0.9, fix flakiness. 2024-04-21 11:10:52 +02:00
L3MON4D3
000074c50b Format with stylua 2024-04-21 08:05:36 +00:00
L3MON4D3
f8eb1e7d1c vscode-loader: don't error on cleanup (close #1163). 2024-04-21 10:02:18 +02:00
L3MON4D3
1d67ba34e9 Format with stylua 2024-04-16 09:06:31 +00:00
L3MON4D3
c5393cad65 fix: correctly select text beginning with a linebreak (close #1158).
The changes to other test-files are due to slightly changed timing, I
couldn't observe any change in behaviour in real-world usage.
2024-04-16 11:03:46 +02:00
L3MON4D3
518d113234 tests: adapt to "helpers" -> "testutil".
:(((((
2024-04-16 11:03:46 +02:00
L3MON4D3
825a61bad1 tests: fix flakiness some more. 2024-04-02 16:22:41 +02:00
L3MON4D3
c0439defc5 Format with stylua 2024-04-02 14:08:40 +00:00
L3MON4D3
706dc3a570 from_vscode: don't trim empty lines/dedent snippet-body (close #1032). 2024-04-02 16:05:33 +02:00
L3MON4D3
87e4768213 tests: fix some flakiness.
just add timeouts after some operations so they complete before the
screen is tested.
2024-04-01 15:43:58 +02:00
L3MON4D3
45d99d1f0c manually set visual hl.
Default visual-hl is changed by
neovim#ec37101abea724286967f973bd3bf73fe432bd0d, since tests are used
across neovim-versions, just manually set the old default.
2024-03-03 09:08:05 +01:00
L3MON4D3
c4b9c7c3b0 Format with stylua 2024-02-14 20:22:25 +01:00
L3MON4D3
97a9742fc0 feat: define callbacks in node-opts.
This circumvents the much more complicated current mechanism of setting
the callback by identifying the node via jump-index in the parent.
2024-02-14 20:22:25 +01:00
L3MON4D3
81d83ec368 Format with stylua 2024-02-14 18:00:34 +01:00
L3MON4D3
92789d4e55 refocus: don't leave the snippet if the active node is an exitNode. 2024-02-14 18:00:34 +01:00
L3MON4D3
7770d372f6 Format with stylua 2024-02-14 15:24:31 +00:00
L3MON4D3
2865c8e23e fix(tests): only use packaged parser for nvim 0.7 and 0.9.
There's some incompatibility with nvim-master now, but since master has
a parsers built-in, we don't have to package another version and can
just rely on that.
2024-02-14 16:21:31 +01:00
L3MON4D3
82108e7e31 Format with stylua 2024-01-08 10:01:27 +00:00
L3MON4D3
2ab3fdb96f lua/snipmate-loader: fix include/exclude (close #1106). 2024-01-08 11:00:22 +01:00
L3MON4D3
2f0db89fcb Format with stylua 2024-01-07 09:35:43 +00:00
L3MON4D3
31007a613c trigEngine: optionally restrict length of trigger (fix #1103). 2024-01-07 10:34:28 +01:00
L3MON4D3
68153ebb03 Format with stylua 2024-01-05 17:24:05 +00:00
L3MON4D3
a655485e57 correctly adjust extmarks of snippet in same insertNode (fix #1100) 2024-01-05 18:23:03 +01:00
L3MON4D3
6a001360ce Format with stylua 2023-12-14 07:27:49 +00:00
L3MON4D3
43c89632f7 fix: recompute snippet-root-index if necessary. 2023-12-14 08:25:45 +01:00
L3MON4D3
954c81b539 Format with stylua 2023-12-05 16:35:23 +00:00
L3MON4D3
581c956a4a fix parsing of choices (close #1078). 2023-12-05 17:27:42 +01:00
L3MON4D3
f03089854a Format with stylua 2023-12-02 23:17:45 +00:00
L3MON4D3
c5ce876359 feat(loaders): re-add reload_file (now as official API) (close #1074). 2023-12-03 00:16:01 +01:00
L3MON4D3
1e57afa005 Format with stylua 2023-12-02 16:24:58 +01:00