* refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings, type gymnastics * refactor(#2731): resolve warnings, type gymnastics * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): handle cwd unavailable when opening * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings, type gymnastics * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): style * refactor(#2731): add _meta library, explicit check disables * refactor(#2731): add lua-language-server manual install instructions * refactor(#2731): resolve warnings * refactor(#2731): explicitly set all diagnostics, reduce deprecated to hint * Revert "refactor(#2731): resolve warnings" This reverts commit9c0526b7b0. * Revert "refactor(#2731): resolve warnings" This reverts commitf534fbc606. * refactor(#2731): handle directory unavailable when deleting * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): resolve warnings * refactor(#2731): handle directory unavailable when creating explorer * refactor(#2731): add all nvim lua libraries * refactor(#2731): resolve warnings * refactor(#2731): remove vim global * refactor(#2731): disable deprecated until we have a 0.9->0.10 story
This commit is contained in:
committed by
GitHub
parent
5a87ffe35c
commit
26632f496e
@@ -56,7 +56,7 @@ end
|
||||
|
||||
function M.close_popup()
|
||||
if current_popup ~= nil then
|
||||
vim.api.nvim_win_close(current_popup.winnr, { force = true })
|
||||
vim.api.nvim_win_close(current_popup.winnr, true)
|
||||
vim.cmd "augroup NvimTreeRemoveFilePopup | au! CursorMoved | augroup END"
|
||||
|
||||
current_popup = nil
|
||||
|
||||
@@ -33,7 +33,7 @@ local function usable_win_ids()
|
||||
end
|
||||
|
||||
local win_config = vim.api.nvim_win_get_config(id)
|
||||
return id ~= tree_winid and win_config.focusable and not win_config.external
|
||||
return id ~= tree_winid and win_config.focusable and not win_config.external or false
|
||||
end, win_ids)
|
||||
end
|
||||
|
||||
@@ -265,8 +265,7 @@ local function open_in_new_window(filename, mode)
|
||||
end
|
||||
end
|
||||
|
||||
local fname = vim.fn.fnameescape(filename)
|
||||
fname = utils.escape_special_chars(fname)
|
||||
local fname = utils.escape_special_chars(vim.fn.fnameescape(filename))
|
||||
|
||||
local command
|
||||
if create_new_window then
|
||||
@@ -287,7 +286,7 @@ local function open_in_new_window(filename, mode)
|
||||
set_current_win_no_autocmd(target_winid, { "BufEnter" })
|
||||
end
|
||||
|
||||
pcall(vim.cmd, command)
|
||||
pcall(vim.api.nvim_cmd, command, { output = false })
|
||||
lib.set_target_win()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user