-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add the official Nextflow Language Server nextflow_ls (#3423)
* feat: add nextflow_ls
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
local util = require 'lspconfig.util' | ||
|
||
return { | ||
default_config = { | ||
cmd = { 'java', '-jar', 'nextflow-language-server-all.jar' }, | ||
filetypes = { 'nextflow' }, | ||
root_dir = util.root_pattern('nextflow.config', '.git'), | ||
settings = { | ||
nextflow = { | ||
files = { | ||
exclude = { '.git', '.nf-test', 'work' }, | ||
}, | ||
}, | ||
}, | ||
}, | ||
docs = { | ||
description = [[ | ||
https://github.com/nextflow-io/language-server | ||
Requirements: | ||
- Java 17+ | ||
`nextflow_ls` can be installed by following the instructions [here](https://github.com/nextflow-io/language-server#development). | ||
If you have installed nextflow language server, you can set the `cmd` custom path as follow: | ||
```lua | ||
require'lspconfig'.nextflow_ls.setup{ | ||
cmd = { 'java', '-jar', 'nextflow-language-server-all.jar' }, | ||
filetypes = { 'nextflow' }, | ||
root_dir = util.root_pattern('nextflow.config', '.git'), | ||
settings = { | ||
nextflow = { | ||
files = { | ||
exclude = { '.git', '.nf-test', 'work' }, | ||
}, | ||
}, | ||
}, | ||
} | ||
``` | ||
]], | ||
}, | ||
} |