aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMicah Halter <micah@mehalter.com>2024-11-07 06:25:35 -0500
committerGitHub <noreply@github.com>2024-11-07 19:25:35 +0800
commit3ae9e5089e3d5e9e1371b836afe3a514cd16bc9f (patch)
tree77e94ef29c9b01b1cc1f5258d80b49d0cb96468e /lua
parentchore: fix typo on deprecate of bufls (#3422) (diff)
downloadnvim-lspconfig-3ae9e5089e3d5e9e1371b836afe3a514cd16bc9f.tar
nvim-lspconfig-3ae9e5089e3d5e9e1371b836afe3a514cd16bc9f.tar.gz
nvim-lspconfig-3ae9e5089e3d5e9e1371b836afe3a514cd16bc9f.tar.bz2
nvim-lspconfig-3ae9e5089e3d5e9e1371b836afe3a514cd16bc9f.tar.lz
nvim-lspconfig-3ae9e5089e3d5e9e1371b836afe3a514cd16bc9f.tar.xz
nvim-lspconfig-3ae9e5089e3d5e9e1371b836afe3a514cd16bc9f.tar.zst
nvim-lspconfig-3ae9e5089e3d5e9e1371b836afe3a514cd16bc9f.zip
feat: add the official Nextflow Language Server nextflow_ls (#3423)
* feat: add nextflow_ls
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/nextflow_ls.lua43
1 files changed, 43 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/nextflow_ls.lua b/lua/lspconfig/configs/nextflow_ls.lua
new file mode 100644
index 00000000..20315d69
--- /dev/null
+++ b/lua/lspconfig/configs/nextflow_ls.lua
@@ -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' },
+ },
+ },
+ },
+}
+```
+]],
+ },
+}