mirror of
https://oauth2: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@github.com/m1ngsama/chopsticks.git
synced 2026-05-10 19:10:59 +08:00
Fix Previm browser opener
Configure Previm to open Markdown previews via /usr/bin/open on macOS, with an xdg-open fallback for Linux desktop environments.
This commit is contained in:
parent
5604eddbdb
commit
4fb20177ef
1 changed files with 5 additions and 0 deletions
5
.vimrc
5
.vimrc
|
|
@ -587,6 +587,11 @@ endif
|
||||||
" ============================================================================
|
" ============================================================================
|
||||||
|
|
||||||
" <leader>mp open live-reloading preview in browser
|
" <leader>mp open live-reloading preview in browser
|
||||||
|
if has('macunix')
|
||||||
|
let g:previm_open_cmd = '/usr/bin/open'
|
||||||
|
elseif executable('xdg-open')
|
||||||
|
let g:previm_open_cmd = 'xdg-open'
|
||||||
|
endif
|
||||||
if exists('g:plugs["previm"]')
|
if exists('g:plugs["previm"]')
|
||||||
nnoremap <leader>mp :PrevimOpen<CR>
|
nnoremap <leader>mp :PrevimOpen<CR>
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue