Use cucumber-language-server from lspconfig
parent
b5d97ed205
commit
796c7b3ee7
|
@ -1,19 +0,0 @@
|
|||
local configs = require 'lspconfig/configs'
|
||||
local util = require 'lspconfig/util'
|
||||
|
||||
configs.cucumberls = {
|
||||
default_config = {
|
||||
cmd = { 'cucumber-language-server', '--stdio' },
|
||||
filetypes = { 'cucumber' },
|
||||
root_dir = util.root_pattern('.git'),
|
||||
},
|
||||
docs = {
|
||||
description = [[
|
||||
https://www.npmjs.com/package/@cucumber/language-server
|
||||
Cucumber Language Server
|
||||
]],
|
||||
default_config = {
|
||||
root_dir = [[root_pattern(".git")]],
|
||||
},
|
||||
},
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
-------------------------------------------------------------------------------
|
||||
-- - Servers not currently supported by lspconfig go in this package - --
|
||||
-------------------------------------------------------------------------------
|
|
@ -3,7 +3,6 @@
|
|||
-------------------------------------------------------------------------------
|
||||
|
||||
local lspconfig = require("lspconfig")
|
||||
require("lsp.extra_servers.cucumber")
|
||||
|
||||
local on_attach = function(client, bufnr)
|
||||
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
|
||||
|
@ -27,7 +26,7 @@ local on_attach = function(client, bufnr)
|
|||
end
|
||||
|
||||
-- Lsp default language servers
|
||||
local servers = { "bashls", "clangd", "cucumberls", "dockerls", "jsonls", "pyright", "rust_analyzer", "kotlin_language_server", "vimls", "clojure_lsp", "gopls", "gdscript", "terraformls", "tsserver" }
|
||||
local servers = { "bashls", "clangd", "cucumber_language_server", "dockerls", "jsonls", "pyright", "rust_analyzer", "kotlin_language_server", "vimls", "clojure_lsp", "gopls", "gdscript", "terraformls", "tsserver" }
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup { on_attach = on_attach }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue