fix: update preview window in-place (#74)

This commit is contained in:
Steven Arcangeli 2023-03-18 15:08:32 -07:00
parent b8eaf88c12
commit 57451c517d
2 changed files with 27 additions and 19 deletions

View file

@ -254,6 +254,9 @@ M.initialize = function(bufnr)
callback = function()
local oil = require("oil")
local parser = require("oil.mutator.parser")
if vim.wo.previewwindow then
return
end
-- Force the cursor to be after the (concealed) ID at the beginning of the line
local adapter = util.get_adapter(bufnr)