mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-16 04:14:37 +02:00
fix(snacks): view => style
This commit is contained in:
parent
f4717e26cc
commit
048d5deca5
2 changed files with 5 additions and 4 deletions
|
@ -110,7 +110,7 @@ return {
|
|||
})
|
||||
end
|
||||
|
||||
-- snacks float
|
||||
-- snacks terminal
|
||||
for _, pos in ipairs({ "top", "bottom", "left", "right" }) do
|
||||
opts[pos] = opts[pos] or {}
|
||||
table.insert(opts[pos], {
|
||||
|
|
|
@ -72,8 +72,9 @@ function M.open(file, opts)
|
|||
end
|
||||
end
|
||||
|
||||
Snacks.config.view("news", {
|
||||
win = { width = 0.6, height = 0.6 },
|
||||
Snacks.config.style("news", {
|
||||
width = 0.6,
|
||||
height = 0.6,
|
||||
wo = {
|
||||
spell = false,
|
||||
wrap = false,
|
||||
|
@ -85,7 +86,7 @@ function M.open(file, opts)
|
|||
|
||||
local float = Snacks.win({
|
||||
file = file,
|
||||
view = "news",
|
||||
style = "news",
|
||||
})
|
||||
|
||||
if vim.diagnostic.enable then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue