Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Pass the jid to post_install_hook #134

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Pass the jid to post_install_hook #134

wants to merge 1 commit into from

Conversation

kassio
Copy link

@kassio kassio commented Aug 4, 2021

This will enable users to handle the windows opened to run the jobs,

require'lspinstall'.post_install_hook = function(jid)
  local channel_info = vim.api.nvim_get_chan_info(jid)
  local winid = vim.fn.bufwinid(channel_info.buffer)
  vim.api.nvim_win_close(winid, true)
end

@kassio kassio closed this Sep 3, 2021
This will enable users to handle the windows opened to run the jobs,

```lua
require'lspinstall'.post_install_hook = function(jid)
  local channel_info = vim.api.nvim_get_chan_info(jid)
  local winid = vim.fn.bufwinid(channel_info.buffer)
  vim.api.nvim_win_close(winid, true)
end
```
@kassio kassio reopened this Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant