From 5fabfcd70c63ef9b0dfa5c55f96663e014a0f7bf Mon Sep 17 00:00:00 2001 From: William Boman Date: Tue, 17 Aug 2021 21:37:14 +0200 Subject: add custom server capabilities (#55) --- lua/nvim-lsp-installer.lua | 4 ++++ lua/nvim-lsp-installer/servers/gopls/init.lua | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/nvim-lsp-installer.lua b/lua/nvim-lsp-installer.lua index b954391f..eae7363e 100644 --- a/lua/nvim-lsp-installer.lua +++ b/lua/nvim-lsp-installer.lua @@ -99,4 +99,8 @@ function M.uninstall(server_name) notify(("Successfully uninstalled %s."):format(server_name)) end +function M.register(server) + _SERVERS[server.name] = server +end + return M diff --git a/lua/nvim-lsp-installer/servers/gopls/init.lua b/lua/nvim-lsp-installer/servers/gopls/init.lua index 0563bb0a..ff7c755a 100644 --- a/lua/nvim-lsp-installer/servers/gopls/init.lua +++ b/lua/nvim-lsp-installer/servers/gopls/init.lua @@ -1,5 +1,4 @@ local server = require "nvim-lsp-installer.server" -local path = require "nvim-lsp-installer.path" local go = require "nvim-lsp-installer.installers.go" local root_dir = server.get_server_root_path "go"