feat: style improvements + md preview

This commit is contained in:
2026-08-29 17:12:08 +02:00
parent 4e26404bd0
commit 356fa923b1
4 changed files with 37 additions and 8 deletions

View File

@@ -31,4 +31,26 @@ return {
})
end,
},
{
"toppair/peek.nvim",
event = { "VeryLazy" },
build = "deno task --quiet build:fast",
opts = {
auto_load = true, -- whether to automatically load preview when
close_on_bdelete = true,
syntax = true,
theme = "light", -- 'dark' or 'light'
update_on_change = true,
-- app = "webview", -- 'webview', 'browser', string or a table of strings
app = { "surf" },
filetype = { "markdown" }, -- list of filetypes to recognize as markdown
throttle_at = 200000, -- start throttling when file exceeds this
throttle_time = "auto", -- minimum amount of time in milliseconds
},
config = function(_, opts)
require("peek").setup(opts)
vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
end,
},
}