mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(picker.preview): hide line numbers / status column for directory preview. Closes #1029
This commit is contained in:
parent
a386e4270b
commit
f9aca86bf3
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue