diff options
| author | kylo252 <[email protected]> | 2021-12-21 09:11:30 +0100 | 
|---|---|---|
| committer | kylo252 <[email protected]> | 2021-12-21 09:11:30 +0100 | 
| commit | 427ad868d404a254dcbc7d3950946dae0cf205de (patch) | |
| tree | 2b9075418abb52cf98f87c8969968632a82dbd44 /lua/lvim/interface | |
| parent | 7244220d93e2b98ba7e7aed14e4f5ccc379b254b (diff) | |
| parent | 5e44e6d59bb8bac477c230dd8a463ddc1dd91799 (diff) | |
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'lua/lvim/interface')
| -rw-r--r-- | lua/lvim/interface/popup.lua | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/lvim/interface/popup.lua b/lua/lvim/interface/popup.lua index b628125c..6587f5d4 100644 --- a/lua/lvim/interface/popup.lua +++ b/lua/lvim/interface/popup.lua @@ -43,7 +43,9 @@ end  -- @param content_provider A function accepting the popup's layout and returning the content to display  function Popup:display(content_provider)    self.win_id = vim.api.nvim_open_win(self.buffer, true, self.layout) -  vim.lsp.util.close_preview_autocmd({ "BufHidden", "BufLeave" }, self.win_id) +  vim.api.nvim_command( +    string.format("autocmd BufHidden,BufLeave <buffer> ++once lua pcall(vim.api.nvim_win_close, %d, true)", self.win_id) +  )    local lines = content_provider(self.layout)    vim.api.nvim_buf_set_lines(self.bufnr, 0, -1, false, lines)  | 
