aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/nextflow_ls.lua
blob: aebab86bb49e601511252dd132886efc0cfad4b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---@brief
---
-- 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
-- vim.lsp.config('nextflow_ls', {
--     cmd = { 'java', '-jar', 'nextflow-language-server-all.jar' },
--     filetypes = { 'nextflow' },
--     settings = {
--       nextflow = {
--         files = {
--           exclude = { '.git', '.nf-test', 'work' },
--         },
--       },
--     },
-- })
-- ```
return {
  cmd = { 'java', '-jar', 'nextflow-language-server-all.jar' },
  filetypes = { 'nextflow' },
  root_markers = { 'nextflow.config', '.git' },
  settings = {
    nextflow = {
      files = {
        exclude = { '.git', '.nf-test', 'work' },
      },
    },
  },
}