diff options
| author | William Boman <william@redwill.se> | 2021-08-14 23:19:23 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-08-15 00:47:15 +0200 |
| commit | d8f4f30463fcfc4b8b60811dbe195aba86917966 (patch) | |
| tree | c6a004cb1a08921184f7b5d85721e9144f20aa00 /lua/nvim-lsp-installer/server.lua | |
| parent | add `env` option to shell.raw, and other cosmetic improvements (diff) | |
| download | mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.gz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.bz2 mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.lz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.xz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.zst mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.zip | |
stylua
Diffstat (limited to 'lua/nvim-lsp-installer/server.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/server.lua | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua index 5747f39e..95797e10 100644 --- a/lua/nvim-lsp-installer/server.lua +++ b/lua/nvim-lsp-installer/server.lua @@ -1,11 +1,11 @@ -local notify = require("nvim-lsp-installer.notify") -local fs = require("nvim-lsp-installer.fs") -local path = require("nvim-lsp-installer.path") +local notify = require "nvim-lsp-installer.notify" +local fs = require "nvim-lsp-installer.fs" +local path = require "nvim-lsp-installer.path" local M = {} function M.get_server_root_path(server) - return path.concat { vim.fn.stdpath("data"), "lsp_servers", server } + return path.concat { vim.fn.stdpath "data", "lsp_servers", server } end M.Server = {} @@ -39,9 +39,7 @@ function M.Server:setup(opts) -- We require the lspconfig server here in order to do it as late as possible. -- The reason for this is because once a lspconfig server has been imported, it's -- automatically registered with lspconfig and causes it to show up in :LspInfo and whatnot. - require("lspconfig")[self.name].setup( - vim.tbl_deep_extend("force", self._default_options, opts) - ) + require("lspconfig")[self.name].setup(vim.tbl_deep_extend("force", self._default_options, opts)) end function M.Server:get_default_options() @@ -70,7 +68,7 @@ function M.Server:install() notify(("Installing %s…"):format(self.name)) - self._installer(self, function (success, result) + self._installer(self, function(success, result) if not success then notify(("Server installation failed for %s. %s"):format(self.name, result), vim.log.levels.ERROR) pcall(self.uninstall, self) |
