1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-26 13:07:45 +01:00

nvim: open markdown preview in kiosk mode

This commit is contained in:
tiyn 2023-08-15 16:37:29 +02:00
parent 4bd7201a76
commit 356f303a16

View File

@ -115,7 +115,15 @@ return require("lazy").setup({
{
"iamcco/markdown-preview.nvim",
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