aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/server.lua')
-rw-r--r--lua/nvim-lsp-installer/server.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua
index b736e2cf..1a23bbbd 100644
--- a/lua/nvim-lsp-installer/server.lua
+++ b/lua/nvim-lsp-installer/server.lua
@@ -111,6 +111,11 @@ function M.Server:get_supported_filetypes()
return {}
end
+function M.Server:get_settings_schema()
+ local ok, schema = pcall(require, ("nvim-lsp-installer._generated.schemas.%s"):format(self.name))
+ return (ok and schema) or nil
+end
+
---@return boolean
function M.Server:is_installed()
return servers.is_server_installed(self.name)