You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lua/astrocommunity/pack/nextflow/README.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,5 +4,33 @@ This plugin pack does the following:
4
4
5
5
- Sets up `nextflow` filetype
6
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)
7
+
- Adds configuration for [`nextflow_ls`](https://github.com/nextflow-io/language-server) to `lspconfig`
8
+
- See below for instructions on enabling it
8
9
- Adds `nextflow` icons to `mini.icons`
10
+
11
+
## Enabling the Nextflow Language Server
12
+
13
+
While the Nextflow language server is young in development it is yet to be added to Mason or `nvim-lspconfig` so it currently requires manual configuration to get up and running.
14
+
15
+
### Requirements
16
+
17
+
- Java 17 or later
18
+
-`language-server-all.jar` downloaded from the [Nextflow Language Server Releases](https://github.com/nextflow-io/language-server/releases) or built from the source
19
+
20
+
### Add to your `plugins/`
21
+
22
+
```lua
23
+
return {
24
+
"AstroNvim/astrolsp",
25
+
opts= {
26
+
-- This line enables the setup of the Nextfow language server
27
+
servers= { "nextflow_ls" },
28
+
configs= {
29
+
-- Must set the command with the path to your JAR file
30
+
nextflow_ls= {
31
+
cmd= { "java", "-jar", "<path to language-server-all.jar>" },
0 commit comments