mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-16 04:14:37 +02:00
feat(snacks): news view can now be customized
This commit is contained in:
parent
a96e5dfd83
commit
a3070f3c08
1 changed files with 7 additions and 2 deletions
|
@ -72,8 +72,7 @@ function M.open(file, opts)
|
|||
end
|
||||
end
|
||||
|
||||
local float = Snacks.win({
|
||||
file = file,
|
||||
Snacks.config.view("news", {
|
||||
win = { width = 0.6, height = 0.6 },
|
||||
wo = {
|
||||
spell = false,
|
||||
|
@ -83,6 +82,12 @@ function M.open(file, opts)
|
|||
conceallevel = 3,
|
||||
},
|
||||
})
|
||||
|
||||
local float = Snacks.win({
|
||||
file = file,
|
||||
view = "news",
|
||||
})
|
||||
|
||||
if vim.diagnostic.enable then
|
||||
pcall(vim.diagnostic.enable, false, { bufnr = float.buf })
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue