Skip to content

Commit e6b34cd

Browse files
authored
fix: pass root_dir to preview for project type (#190)
- this allows to preview projects, even if neovims cwd is not within the project directory
1 parent 5325af3 commit e6b34cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/quarto/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function M.quartoPreview(opts)
4949

5050
if root_dir then
5151
mode = 'project'
52-
cmd = 'quarto preview ' .. args
52+
cmd = 'quarto preview ' .. vim.fn.shellescape(root_dir) .. ' ' .. args
5353
else
5454
mode = 'file'
5555
cmd = 'quarto preview ' .. vim.fn.shellescape(buffer_path) .. ' ' .. args

0 commit comments

Comments
 (0)