aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer.lua4
-rw-r--r--lua/nvim-lsp-installer/servers/gopls/init.lua1
2 files changed, 4 insertions, 1 deletions
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"