feat: add the toppair/peek.nvim plugin

Add and configure the toppair/peek.nvim plugin for markdown previewing.
This commit is contained in:
Dan Anglin 2024-06-29 21:56:54 +01:00
parent 98f7df1c0d
commit fa2e934d15
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,13 @@
local ok, peek = pcall(require, "peek")
if not ok then
return
end
peek.setup{
theme = "dark",
app = "webview",
}
vim.api.nvim_create_user_command("PeekOpen", peek.open, {})
vim.api.nvim_create_user_command("PeekClose", peek.close, {})

View file

@ -68,6 +68,15 @@ local plugins = {
require("plugins.config.lint")
end,
},
{
-- Source: https://github.com/toppair/peek.nvim
"toppair/peek.nvim",
commit = "5820d937d5414baea5f586dc2a3d912a74636e5b", -- 2024.04.09
build = "deno task --quiet build:fast",
config = function()
require("plugins.config.peek")
end,
},
}
require("lazy").setup(plugins, {