fix(#3045): wipe scratch buffers for full name and show info popups (#3050)

This commit is contained in:
𝐍𝐆𝐏𝐎𝐍𝐆 2025-01-18 07:28:06 +08:00 committed by GitHub
parent d529a99f88
commit fca0b67c0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ local function setup_window(node)
file_path = node.absolute_path, file_path = node.absolute_path,
} }
local bufnr = vim.api.nvim_create_buf(false, true) local bufnr = vim.api.nvim_create_buf(false, true)
vim.bo[bufnr].bufhidden = "wipe"
vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines) vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines)
vim.api.nvim_win_set_buf(winnr, bufnr) vim.api.nvim_win_set_buf(winnr, bufnr)
end end

View File

@ -81,7 +81,7 @@ local function show()
vim.api.nvim_buf_add_highlight(0, ns_id, details.hl_group, 0, col, details.end_col) vim.api.nvim_buf_add_highlight(0, ns_id, details.hl_group, 0, col, details.end_col)
end end
vim.cmd([[ setlocal nowrap cursorline noswapfile nobuflisted buftype=nofile bufhidden=hide ]]) vim.cmd([[ setlocal nowrap cursorline noswapfile nobuflisted buftype=nofile bufhidden=wipe ]])
end) end)
end end