From 6c2fb86c6a03e20abea5ddd17d735885f0b7cb5e Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Wed, 24 Nov 2021 23:01:07 -0500 Subject: feat: expose configs --- lua/lspconfig/phpactor.lua | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 lua/lspconfig/phpactor.lua (limited to 'lua/lspconfig/phpactor.lua') diff --git a/lua/lspconfig/phpactor.lua b/lua/lspconfig/phpactor.lua deleted file mode 100644 index 77eb45d2..00000000 --- a/lua/lspconfig/phpactor.lua +++ /dev/null @@ -1,30 +0,0 @@ -local configs = require 'lspconfig/configs' -local util = require 'lspconfig/util' - -local server_name = 'phpactor' -local bin_name = 'phpactor' - -configs[server_name] = { - default_config = { - cmd = { bin_name, 'language-server' }, - filetypes = { 'php' }, - root_dir = function(pattern) - local cwd = vim.loop.cwd() - local root = util.root_pattern('composer.json', '.git')(pattern) - - -- prefer cwd if root is a descendant - return util.path.is_descendant(cwd, root) and cwd or root - end, - }, - docs = { - description = [[ -https://github.com/phpactor/phpactor - -Installation: https://phpactor.readthedocs.io/en/master/usage/standalone.html#global-installation -]], - default_config = { - cmd = { 'phpactor', 'language-server' }, - root_dir = [[root_pattern("composer.json", ".git")]], - }, - }, -} -- cgit v1.2.3-70-g09d2