Move lsp config to local file structure
This commit is contained in:
parent
e5c3bb2492
commit
20801272fc
383 changed files with 11829 additions and 114 deletions
38
.config/nvim/lsp/nextflow_ls.lua
Normal file
38
.config/nvim/lsp/nextflow_ls.lua
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
---@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' },
|
||||
--- },
|
||||
--- },
|
||||
--- },
|
||||
--- })
|
||||
--- ```
|
||||
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { 'java', '-jar', 'nextflow-language-server-all.jar' },
|
||||
filetypes = { 'nextflow' },
|
||||
root_markers = { 'nextflow.config', '.git' },
|
||||
settings = {
|
||||
nextflow = {
|
||||
files = {
|
||||
exclude = { '.git', '.nf-test', 'work' },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue