fix(refresh): correct refresh in code buffer (#166)

only render inlay in codebuf

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-23 02:23:45 -04:00
committed by GitHub
parent 1cbf7e106c
commit 2fc266edd2
3 changed files with 19 additions and 17 deletions

View File

@@ -93,7 +93,7 @@ H.autocmds = function()
local s = M.sidebars[tab]
local sl = M.selections[tab]
if s then
s:destroy()
s:reset()
end
if sl then
sl:delete_autocmds()
@@ -177,6 +177,7 @@ M.refresh = function()
local curwin = vim.api.nvim_get_current_win()
sidebar:close()
sidebar.code.winid = curwin
sidebar.code.bufnr = curbuf
sidebar:render()