working markdown previoew
This commit is contained in:
@@ -1,26 +0,0 @@
|
|||||||
-- 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, {})
|
|
||||||
@@ -97,6 +97,9 @@ return require('packer').startup(function(use)
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
use { 'toppair/peek.nvim', run = 'deno task --quiet build:fast' }
|
use({
|
||||||
|
"iamcco/markdown-preview.nvim",
|
||||||
|
run = function() vim.fn["mkdp#util#install"]() end,
|
||||||
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
@@ -180,6 +180,11 @@ _G.packer_plugins = {
|
|||||||
path = "/home/talksik/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
path = "/home/talksik/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
||||||
url = "https://github.com/nvim-lualine/lualine.nvim"
|
url = "https://github.com/nvim-lualine/lualine.nvim"
|
||||||
},
|
},
|
||||||
|
["markdown-preview.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/home/talksik/.local/share/nvim/site/pack/packer/start/markdown-preview.nvim",
|
||||||
|
url = "https://github.com/iamcco/markdown-preview.nvim"
|
||||||
|
},
|
||||||
["mason-lspconfig.nvim"] = {
|
["mason-lspconfig.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/talksik/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim",
|
path = "/home/talksik/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim",
|
||||||
@@ -220,11 +225,6 @@ _G.packer_plugins = {
|
|||||||
path = "/home/talksik/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
path = "/home/talksik/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
||||||
url = "https://github.com/wbthomason/packer.nvim"
|
url = "https://github.com/wbthomason/packer.nvim"
|
||||||
},
|
},
|
||||||
["peek.nvim"] = {
|
|
||||||
loaded = true,
|
|
||||||
path = "/home/talksik/.local/share/nvim/site/pack/packer/start/peek.nvim",
|
|
||||||
url = "https://github.com/toppair/peek.nvim"
|
|
||||||
},
|
|
||||||
playground = {
|
playground = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/talksik/.local/share/nvim/site/pack/packer/start/playground",
|
path = "/home/talksik/.local/share/nvim/site/pack/packer/start/playground",
|
||||||
|
|||||||
Reference in New Issue
Block a user