feat: add peek settings

This commit is contained in:
David Bell 2023-04-04 18:44:31 +01:00
parent 3b8e14e3d1
commit 4bd4388220
No known key found for this signature in database
GPG Key ID: EB8E7B08C6DE0FD7
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,20 @@
return {
"toppair/peek.nvim",
ft = "markdown",
build = "deno task --quiet build:fast",
init = function()
require("peek").setup({
auto_load = false,
close_on_bdelete = true,
syntax = false,
theme = "dark",
update_on_change = true,
app = {'google-stable-chrome', '--new-window'},
filetype = {"markdown"},
throttle_at = 200000,
throttle_time = "auto",
})
require("peek_settings.commands")
end,
}

View File

@ -0,0 +1,2 @@
vim.api.nvim_create_user_command('PeekOpen', require('peek').open, {})
vim.api.nvim_create_user_command('PeekClose', require('peek').close, {})