mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2026-05-06 17:16:09 +02:00
51 lines
1.4 KiB
Lua
51 lines
1.4 KiB
Lua
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
-- This config is DEPRECATED.
|
|
-- Use the configs in `lsp/` instead (requires Nvim 0.11).
|
|
--
|
|
-- ALL configs in `lua/lspconfig/configs/` will be DELETED.
|
|
-- They exist only to support Nvim 0.10 or older.
|
|
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
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' },
|
|
},
|
|
},
|
|
},
|
|
}
|
|
```
|
|
]],
|
|
},
|
|
}
|