Bugfix. Don't use nvim.lua that doesn't exist :)

This commit is contained in:
Ashkan Kiani
2019-11-20 11:41:45 -08:00
parent 568b454088
commit ff65cc990a

View File

@@ -80,11 +80,11 @@ end
local function focusable_popup()
local popup_win
return function(winnr)
if popup_win and nvim.win_is_valid(popup_win) then
if nvim.get_current_win() == popup_win then
nvim.ex.wincmd "p"
if popup_win and api.nvim_win_is_valid(popup_win) then
if api.nvim_get_current_win() == popup_win then
api.nvim_command("wincmd p")
else
nvim.set_current_win(popup_win)
api.nvim_set_current_win(popup_win)
end
return
end