diff options
| author | Peter Lithammer <peter.lithammer@gmail.com> | 2021-09-23 11:56:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-23 11:56:02 +0200 |
| commit | 9ca394ec3a9305a6c30018ee6f731c9b23a4b25e (patch) | |
| tree | f8843ec3eeebc176a193d8818f60045b62b6f757 /lua | |
| parent | Merge pull request #1275 from neovim/fix-stylua-formatting (diff) | |
| parent | feat: add cucumber language server (diff) | |
| download | nvim-lspconfig-9ca394ec3a9305a6c30018ee6f731c9b23a4b25e.tar nvim-lspconfig-9ca394ec3a9305a6c30018ee6f731c9b23a4b25e.tar.gz nvim-lspconfig-9ca394ec3a9305a6c30018ee6f731c9b23a4b25e.tar.bz2 nvim-lspconfig-9ca394ec3a9305a6c30018ee6f731c9b23a4b25e.tar.lz nvim-lspconfig-9ca394ec3a9305a6c30018ee6f731c9b23a4b25e.tar.xz nvim-lspconfig-9ca394ec3a9305a6c30018ee6f731c9b23a4b25e.tar.zst nvim-lspconfig-9ca394ec3a9305a6c30018ee6f731c9b23a4b25e.zip | |
Merge pull request #1274 from esensar/feature/cucumber-language-server
feat: add cucumber language server
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/cucumber_language_server.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/lspconfig/cucumber_language_server.lua b/lua/lspconfig/cucumber_language_server.lua new file mode 100644 index 00000000..474dc9b8 --- /dev/null +++ b/lua/lspconfig/cucumber_language_server.lua @@ -0,0 +1,29 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +configs.cucumber_language_server = { + default_config = { + cmd = { 'cucumber-language-server', '--stdio' }, + filetypes = { 'cucumber' }, + root_dir = util.root_pattern '.git', + }, + docs = { + package_json = 'https://raw.githubusercontent.com/cucumber/common/main/language-server/javascript/package.json', + description = [[ +https://cucumber.io +https://github.com/cucumber/common +https://www.npmjs.com/package/@cucumber/language-server + +Language server for Cucumber. + +`cucumber-language-server` can be installed via `npm`: +```sh +npm install -g @cucumber/language-server +``` + ]], + default_config = { + root_dir = [[root_pattern(".git")]], + }, + }, +} +-- vim:et ts=2 sw=2 |
