aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-10-29 19:26:49 +0200
committerGitHub <noreply@github.com>2021-10-29 19:26:49 +0200
commitb7c821c1e38ad7f52195186b0f5d17a6d64a55aa (patch)
treefd8789919803e8d8d253e3dd5108ac7d82bdc478 /lua/nvim-lsp-installer.lua
parentfix gathering currently open filetypes (diff)
downloadmason-b7c821c1e38ad7f52195186b0f5d17a6d64a55aa.tar
mason-b7c821c1e38ad7f52195186b0f5d17a6d64a55aa.tar.gz
mason-b7c821c1e38ad7f52195186b0f5d17a6d64a55aa.tar.bz2
mason-b7c821c1e38ad7f52195186b0f5d17a6d64a55aa.tar.lz
mason-b7c821c1e38ad7f52195186b0f5d17a6d64a55aa.tar.xz
mason-b7c821c1e38ad7f52195186b0f5d17a6d64a55aa.tar.zst
mason-b7c821c1e38ad7f52195186b0f5d17a6d64a55aa.zip
add public API to close installer window (#208)
Diffstat (limited to 'lua/nvim-lsp-installer.lua')
-rw-r--r--lua/nvim-lsp-installer.lua17
1 files changed, 16 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer.lua b/lua/nvim-lsp-installer.lua
index 5253e654..d1ab5f20 100644
--- a/lua/nvim-lsp-installer.lua
+++ b/lua/nvim-lsp-installer.lua
@@ -12,8 +12,23 @@ local M = {}
M.settings = settings.set
---- Opens the status window.
+M.info_window = {
+ ---Opens the status window.
+ open = function()
+ status_win().open()
+ end,
+ ---Closes the status window.
+ close = function()
+ status_win().close()
+ end,
+}
+
+---Deprecated. Use info_window.open().
function M.display()
+ notify(
+ "The lsp_installer.display() function has been deprecated. Use lsp_installer.info_window.open() instead.",
+ vim.log.levels.WARN
+ )
status_win().open()
end