nvim: open markdown preview in kiosk mode

master
tiyn 1 year ago
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…
Cancel
Save