feat: style improvements + md preview
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user