mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-16 12:24:36 +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
|
||||||
end
|
end
|
||||||
|
|
||||||
local float = Snacks.win({
|
Snacks.config.view("news", {
|
||||||
file = file,
|
|
||||||
win = { width = 0.6, height = 0.6 },
|
win = { width = 0.6, height = 0.6 },
|
||||||
wo = {
|
wo = {
|
||||||
spell = false,
|
spell = false,
|
||||||
|
@ -83,6 +82,12 @@ function M.open(file, opts)
|
||||||
conceallevel = 3,
|
conceallevel = 3,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local float = Snacks.win({
|
||||||
|
file = file,
|
||||||
|
view = "news",
|
||||||
|
})
|
||||||
|
|
||||||
if vim.diagnostic.enable then
|
if vim.diagnostic.enable then
|
||||||
pcall(vim.diagnostic.enable, false, { bufnr = float.buf })
|
pcall(vim.diagnostic.enable, false, { bufnr = float.buf })
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue