feat: add the toppair/peek.nvim plugin
Add and configure the toppair/peek.nvim plugin for markdown previewing.
This commit is contained in:
parent
98f7df1c0d
commit
fa2e934d15
2 changed files with 22 additions and 0 deletions
13
nvim/lua/plugins/config/peek.lua
Normal file
13
nvim/lua/plugins/config/peek.lua
Normal 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, {})
|
|
@ -68,6 +68,15 @@ local plugins = {
|
||||||
require("plugins.config.lint")
|
require("plugins.config.lint")
|
||||||
end,
|
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, {
|
require("lazy").setup(plugins, {
|
||||||
|
|
Loading…
Reference in a new issue