Skip to content
Snippets Groups Projects
Verified Commit c9301fd3 authored by iliya.saroukha's avatar iliya.saroukha :first_quarter_moon:
Browse files

feat: added peek.nvim, replacing markdown-preview

parent 063f8e57
No related branches found
No related tags found
1 merge request!1feat: v2 config fully working, setting it as the default from now on
return {
"toppair/peek.nvim",
event = { "VeryLazy" },
build = "deno task --quiet build:fast",
config = function()
-- default config:
require('peek').setup({
auto_load = true, -- whether to automatically load preview when
-- entering another markdown buffer
close_on_bdelete = true, -- close preview window on buffer delete
syntax = true, -- enable syntax highlighting, affects performance
theme = 'dark', -- 'dark' or 'light'
update_on_change = true,
app = 'browser', -- 'webview', 'browser', string or a table of strings
-- explained below
filetype = { 'markdown' }, -- list of filetypes to recognize as markdown
-- relevant if update_on_change is true
throttle_at = 200000, -- start throttling when file exceeds this
-- amount of bytes in size
throttle_time = 'auto', -- minimum amount of time in milliseconds
-- that has to pass before starting new render
})
vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
end,
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment