Skip to content

Commit 1d22192

Browse files
committed
feat(nextflow): add snippets from VS Code plugin
1 parent 58863a1 commit 1d22192

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

lua/astrocommunity/pack/nextflow/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
This plugin pack does the following:
44

55
- Sets up `nextflow` filetype
6-
- Adds `nextflow` treesitter parsers
6+
- Adds [`vim-language-nextflow`](https://github.com/nextflow-io/vim-language-nextflow) for syntax highlighting
7+
- Adds snippets to LuaSnip from [`vscode-language-nextflow`](https://github.com/nextflow-io/vscode-language-nextflow)
78
- Adds `nextflow` icons to `mini.icons`

lua/astrocommunity/pack/nextflow/init.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ return {
99
} } },
1010
},
1111
{ "nextflow-io/vim-language-nextflow", ft = "nextflow" },
12+
{
13+
"L3MON4D3/LuaSnip",
14+
optional = true,
15+
specs = {
16+
"nextflow-io/vscode-language-nextflow",
17+
ft = "nextflow",
18+
dependencies = { "L3MON4D3/LuaSnip" },
19+
config = function(plugin)
20+
require("luasnip.loaders.from_vscode").lazy_load {
21+
paths = { plugin.dir },
22+
}
23+
end,
24+
},
25+
},
1226
{
1327
"echasnovski/mini.icons",
1428
optional = true,

0 commit comments

Comments
 (0)