nvim-lspinstall icon indicating copy to clipboard operation
nvim-lspinstall copied to clipboard

Pass the jid to post_install_hook

Open kassio opened this issue 3 years ago • 0 comments

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 avatar Aug 04 '21 17:08 kassio