fix(picker.preview): hide line numbers / status column for directory preview. Closes #1029

This commit is contained in:
Folke Lemaitre 2025-02-09 09:55:48 +01:00
parent a386e4270b
commit f9aca86bf3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 9 additions and 1 deletions

View file

@ -215,6 +215,10 @@ function M:reset()
vim.o.eventignore = ei
end
function M:minimal()
self:wo({ number = false, relativenumber = false, signcolumn = "no" })
end
-- create a new scratch buffer
function M:scratch()
local buf = vim.api.nvim_create_buf(false, true)
@ -225,7 +229,7 @@ function M:scratch()
vim.o.eventignore = ei
self.win:set_buf(buf)
self.win:map()
self:wo({ number = false, relativenumber = false, signcolumn = "no" })
self:minimal()
return buf
end