1
0
Fork 0
mirror of synced 2024-11-16 05:55:35 -05:00
ultimate-vim/sources_non_forked/markdown-preview.nvim/app/index.js
2022-05-19 20:12:11 +08:00

8 lines
213 B
JavaScript

// change cwd to ./app
if (!/^(\/|C:\\)snapshot/.test(__dirname)) {
process.chdir(__dirname)
} else {
process.chdir(process.execPath.replace(/(markdown-preview.nvim.*?app).+?$/, '$1'))
}
require('./lib/app')