diff --git a/nvim/init.vim b/nvim/init.vim index e4faddf..95b7f49 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -77,6 +77,11 @@ Plug 'lervag/vimtex' "Go Plug 'fatih/vim-go' +"Macdown (only on macOS) +if has("macunix") + Plug 'hashrocket/vim-macdown' +endif + call plug#end() " Run PlugInstall if there are missing plugins @@ -287,4 +292,7 @@ if has("macunix") else let g:python3_host_prog="/usr/local/bin/python3" endif + + " Open MacDown preview on .md save + autocmd BufWritePost *.md MacDownPreview endif