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:
parent
4bd7201a76
commit
356f303a16
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user