diff options
| author | William Boman <william@redwill.se> | 2021-10-29 19:26:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-29 19:26:49 +0200 |
| commit | b7c821c1e38ad7f52195186b0f5d17a6d64a55aa (patch) | |
| tree | fd8789919803e8d8d253e3dd5108ac7d82bdc478 /lua/nvim-lsp-installer.lua | |
| parent | fix gathering currently open filetypes (diff) | |
| download | mason-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.lua | 17 |
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 |
