mirror of
https://github.com/cap153/nvim.git
synced 2026-01-02 16:05:06 +08:00
添加vscode neovim相关配置
This commit is contained in:
parent
59f0ba6a45
commit
d1f5f0a2c8
12 changed files with 217 additions and 57 deletions
14
lua/lazy/plugins/markdownpreview.lua
Normal file
14
lua/lazy/plugins/markdownpreview.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
"cap153/peek.nvim",
|
||||
event = { "VeryLazy" },
|
||||
build = "deno task --quiet build:fast",
|
||||
config = function()
|
||||
require("peek").setup({
|
||||
port = 9000,
|
||||
-- app = { "firefox-esr", "-private-window" },
|
||||
app = { "google-chrome-stable", "--app=http://localhost:9000/?theme=dark", "--incognito" },
|
||||
})
|
||||
vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
|
||||
vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue