Commit graph

2160 commits

Author SHA1 Message Date
treequin
7191c5705a Fix links to DOC.md in README.md 2023-10-18 08:07:27 +02:00
L3MON4D3
0df29db354 Format with stylua 2023-10-12 08:33:03 +00:00
L3MON4D3
b12ac51c80 Auto generate docs 2023-10-12 08:32:59 +00:00
L3MON4D3
410a451eb4 fix: adjust parent-node rgrav s.t. nested snippet stays inside it. 2023-10-12 10:31:50 +02:00
L3MON4D3
cdbf6f4138 Auto generate docs 2023-10-06 16:08:39 +00:00
L3MON4D3
3cfa0c7f11 fix: bad log.warn in error-handling-code. 2023-10-06 18:07:08 +02:00
L3MON4D3
2c3a3a3e4f Format with stylua 2023-10-04 17:12:20 +00:00
L3MON4D3
882a7eb128 fix unlink_current (close #1028). 2023-10-04 19:10:29 +02:00
L3MON4D3
ad089ed458 Format with stylua 2023-10-04 15:11:38 +02:00
L3MON4D3
2bf254c08c Auto generate docs 2023-10-04 15:11:38 +02:00
L3MON4D3
9253fa9123 fix extmark-adjustments for nested snippets.
now parents update children, and children parents.
2023-10-04 15:11:38 +02:00
L3MON4D3
6e951d8f2a don't update dynamic/functionNode if their snippet is damaged. 2023-10-04 15:11:38 +02:00
L3MON4D3
64bf87a9b3 have nested snippets update the node they are inside. 2023-10-04 15:11:38 +02:00
L3MON4D3
48b5b5538c make jumpable smarter. 2023-10-04 15:11:38 +02:00
L3MON4D3
d9cb6ab976 Overhaul snippet-insertion.
Before this, upon expanding a new snippet, its jumps were linked up
with the currently active node, no matter its position in the buffer.
The most prominent negative side-effect of this is jumping all over the
buffer if a snippet is not jumped "through" (ie. to its $0).
This finally adresses this properly by inserting snippets into nodes
according to their position in the buffer.
Read the changes to `DOC.md` for more info.

This commit also deprecates `history` in `setup`, prefer the new options
`keep_roots`, `link_roots`, and `link_children`, as they are more
readable. Still, it is very unlikely that compatibility with `history`
will ever be completely removed, so no need to fret about this.
2023-10-04 15:11:38 +02:00
L3MON4D3
6085dfd180 Auto generate docs 2023-10-03 13:00:45 +00:00
pockethook
f91aae060e Auto generate docs 2023-10-03 14:59:46 +02:00
Cheehan Weereratne
8c77f6ddf5 Fix lazy install tag in README.md 2023-10-03 14:59:46 +02:00
philolo1
480b032f67 Auto generate docs 2023-09-25 07:56:24 +02:00
Patrick Klitzke
a0bb6e9b49 Add nil for type opt for parse_snippet
This commit fixes the typing issues that lua lsp would complain about the
argument being required.
2023-09-25 07:56:24 +02:00
L3MON4D3
1fd22fa96c Auto generate docs 2023-09-24 10:11:48 +00:00
L3MON4D3
323470aeab trigEngine,ecma: return error if regex could not be compiled. 2023-09-24 12:09:14 +02:00
L3MON4D3
c5fb16a934 Auto generate docs 2023-09-21 10:43:46 +00:00
L3MON4D3
5bc8c0b1ea Format with stylua 2023-09-21 12:42:39 +02:00
L3MON4D3
7865115db2 Auto generate docs 2023-09-21 12:42:39 +02:00
L3MON4D3
0691d9e949 test on nvim0.9 as well.
Validate treesitter-postfix on oldest release where it is enabled.
2023-09-21 12:42:39 +02:00
Hawtian Wang
a57babc55e implement treesitter-postfix.
See DOC.md-changes for extensive documentation and examples.
2023-09-21 12:42:39 +02:00
L3MON4D3
8efa4e402a Format with stylua 2023-09-19 15:17:35 +00:00
L3MON4D3
90ea947578 Auto generate docs 2023-09-19 15:17:31 +00:00
L3MON4D3
20b7333d3d fix store_selection on multibyte-characters (close #1007). 2023-09-19 17:16:22 +02:00
bew
3657c3f3cb Format with stylua 2023-09-17 21:09:09 +02:00
bew
63aadcaefb Auto generate docs 2023-09-17 21:09:09 +02:00
Benoit de Chezelles
a2806953e4 feat: Allow desc to set snippet description
Setting the description with `dscr` is still supported.
Access to the description is done through `description` or `dscr`.
2023-09-17 21:09:09 +02:00
L3MON4D3
a86bcf6bd7 Auto generate docs 2023-09-17 09:48:22 +00:00
L3MON4D3
cdffd08a36 ci: don't use bundled gperf for nvim0.7, does not seem to compile. 2023-09-17 11:47:04 +02:00
L3MON4D3
ea7d7ea510 Auto generate docs 2023-08-31 17:33:11 +00:00
L3MON4D3
326bd77130 fix: make sure dynamicNode.snip is accessible during update_restore. 2023-08-31 19:32:09 +02:00
Kyle F Hartzenberg
c4d6298347 Update DOC.md structure to include Troubleshooting section
Added an explanation regarding the behaviour of snippet expansion when multiple snippets can potentially expand at the current buffer-position. Re-structured DOC.md to separate Troubleshooting advice into its own section.
2023-08-18 07:05:30 +02:00
L3MON4D3
409535b8fc Format with stylua 2023-08-13 23:19:43 +02:00
L3MON4D3
5e98e69cf8 Auto generate docs 2023-08-13 23:19:28 +02:00
Hawtian Wang
a38fd2d0ba implement postfix using resolveExpandParams. 2023-08-13 23:18:55 +02:00
Hawtian Wang
f1d81013bc add new option resolveExpandParams for snippets.
The intention of this change is outlined in the amendments to DOC.md,
and in https://github.com/L3MON4D3/LuaSnip/pull/974.
2023-08-13 23:18:47 +02:00
L3MON4D3
99a94cc35e Auto generate docs 2023-08-04 08:30:52 +00:00
b0ae989c
ca5855f8f9 Auto generate docs 2023-08-04 10:30:05 +02:00
Yifan Hu
153ebee6d1 docs: fix snip-env-src 2023-08-04 10:30:05 +02:00
troiganto
e81cbe6004 Auto generate docs 2023-07-26 16:44:44 +02:00
Nico Madysa
96010536a7 fix: catch undocumented edge case in scandir()
While libuv/vim.loop docs say that `fs_scandir_next()` either returns
`nil` or `string, string` or fails, there is an edge case on networked
filesystems. In those cases, `uv__fs_scandir()` returns the type
`UV_DIRENT_UNKNOWN` and `luv.fs_scandir_next()` [converts][1] this into
returning a single string.

This means in those cases, `name` is a string and `type` is `nil`. See
[this bug report][2].

The situation can be remedied by explicitly calling `fs_stat()` on those
files. This always fetches the correct type, as far as I can see.

[1]: https://github.com/luvit/luv/blob/master/src/fs.c#L116
[2]: https://github.com/luvit/luv/issues/660
2023-07-26 16:44:44 +02:00
L3MON4D3
0b4950a237 readme: small fixes.
* Correctly state required neovim-version.
* Put resolved major version number into install-commands, leads to
  confusion otherwise.
2023-07-18 17:30:30 +02:00
henryhchchc
1f72e43a44 Auto generate docs 2023-07-18 07:01:55 +02:00
Henry Chu
132184559e fix: install jsregexp
When there is a space in the path to luasnip
2023-07-18 07:01:55 +02:00