fix: 修复了反向选择,位置识别错误的问题

This commit is contained in:
JuanZoran
2023-01-14 21:30:56 +08:00
parent 549e10f029
commit 0a2d05af70
4 changed files with 12 additions and 1 deletions

View File

@@ -102,6 +102,11 @@ M.load_float_opts = function()
end
end, { buffer = M.bufnr, silent = true })
vim.keymap.set('n', '<Esc>', function()
if api.nvim_win_is_valid(M.id) then
api.nvim_win_close(M.id, true)
end
end, { buffer = M.bufnr, silent = true })
end