fix(luasnip) Do not remove snippet indent (#110)
* Breaking change fix in luasnip `parse_snippet` Co-authored-by: Agustin Romero <agustin.romero@mercadolibre.com>
This commit is contained in:
@@ -239,7 +239,7 @@ end
|
||||
---@eval return MiniDoc.afterlines_to_code(MiniDoc.current.eval_section)
|
||||
---@text # Changelog~
|
||||
---
|
||||
--- Note: We will only document `major` and `minor` versions, not `patch` ones.
|
||||
--- Note: We will only document `major` and `minor` versions, not `patch` ones. (only X and Y in X.Y.z)
|
||||
---
|
||||
--- ## 2.8.0~
|
||||
--- - Specify annotation convention on `generate()` method (see |neogen.generate()|)
|
||||
@@ -280,7 +280,7 @@ end
|
||||
--- with multiple annotation conventions.
|
||||
---@tag neogen-changelog
|
||||
---@toc_entry Changes in neogen plugin
|
||||
neogen.version = "2.8.0"
|
||||
neogen.version = "2.8.1"
|
||||
--minidoc_afterlines_end
|
||||
|
||||
return neogen
|
||||
|
||||
@@ -79,7 +79,8 @@ snippet.engines.luasnip = function(snip, pos)
|
||||
local _snip = table.concat(snip, "\n")
|
||||
|
||||
ls.snip_expand(
|
||||
ls.s("", ls.parser.parse_snippet(nil, _snip), {
|
||||
|
||||
ls.s("", ls.parser.parse_snippet(nil, _snip,{trim_empty = false, dedent = false}), {
|
||||
|
||||
child_ext_opts = {
|
||||
-- for highlighting the placeholders
|
||||
|
||||
Reference in New Issue
Block a user