mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-01 00:47:45 +02:00
nvim: open markdown preview in kiosk mode
This commit is contained in:
parent
4bd7201a76
commit
356f303a16
@ -115,7 +115,15 @@ return require("lazy").setup({
|
|||||||
{
|
{
|
||||||
"iamcco/markdown-preview.nvim",
|
"iamcco/markdown-preview.nvim",
|
||||||
ft = { 'markdown' },
|
ft = { 'markdown' },
|
||||||
build = "cd app && yarn install"
|
build = "cd app && yarn install",
|
||||||
|
config = function ()
|
||||||
|
vim.cmd[[
|
||||||
|
function OpenMarkdownPreview (url)
|
||||||
|
execute "silent ! firefox --kiosk --new-window " . a:url
|
||||||
|
endfunction
|
||||||
|
]]
|
||||||
|
vim.g.mkdp_browserfunc = "OpenMarkdownPreview"
|
||||||
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
-- automatic closing of brackets
|
-- automatic closing of brackets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user