Skip to content

Commit decbf37

Browse files
committed
Added snippet_engine parameter
Added missing version information
1 parent e932ba9 commit decbf37

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

doc/neogen.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,14 @@ Feel free to submit a PR, I will be happy to help you !
182182
We use semantic versioning ! (https://semver.org)
183183
Here is the current Neogen version:
184184
>lua
185-
neogen.version = "2.19.4"
185+
neogen.version = "2.20.0"
186186
<
187187
# Changelog~
188188

189189
Note: We will only document `major` and `minor` versions, not `patch` ones. (only X and Y in X.Y.z)
190190

191+
## 2.20.0~
192+
- Add the `snippet_engine` parameter to `neogen.generator` (#202)
191193
## 2.19.0~
192194
- Add support for julia (`julia`) ! (#185)
193195
## 2.18.0~
@@ -464,4 +466,4 @@ If not specified, will use this line for all types.
464466
{required} `(string)` If specified, is used in if the first field of the table is a `table` (example above)
465467

466468

467-
vim:tw=78:ts=8:noet:ft=help:norl:
469+
vim:tw=78:ts=8:noet:ft=help:norl:

lua/neogen/generator.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ local function generate_content(parent, data, template, required_type, annotatio
235235
end
236236

237237
return setmetatable({}, {
238-
__call = function(_, filetype, node_type, return_snippet, annotation_convention)
238+
__call = function(_, filetype, node_type, return_snippet, annotation_convention, snippet_engine)
239239
if filetype == "" then
240240
notify("No filetype detected", vim.log.levels.WARN)
241241
return
@@ -319,7 +319,7 @@ return setmetatable({}, {
319319
return generated_snippet, row
320320
end
321321

322-
local snippet_engine = conf.snippet_engine
322+
snippet_engine = snippet_engine or conf.snippet_engine
323323
if snippet_engine then
324324
-- User want to use a snippet engine instead of native handling
325325
local engines = snippet.engines

lua/neogen/init.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ end
241241
---
242242
--- Note: We will only document `major` and `minor` versions, not `patch` ones. (only X and Y in X.Y.z)
243243
---
244+
--- ## 2.20.0~
245+
--- - Add the `snippet_engine` parameter to `neogen.generator` (#202)
244246
--- ## 2.19.0~
245247
--- - Add support for julia (`julia`) ! (#185)
246248
--- ## 2.18.0~
@@ -309,7 +311,7 @@ end
309311
--- with multiple annotation conventions.
310312
---@tag neogen-changelog
311313
---@toc_entry Changes in neogen plugin
312-
neogen.version = "2.19.4"
314+
neogen.version = "2.20.0"
313315
--minidoc_afterlines_end
314316

315317
return neogen

0 commit comments

Comments
 (0)