Skip to content

Commit cb72652

Browse files
Copilotjmbuhr
andauthored
feat: support .py, .R, .jl files in QuartoPreview (#203)
* Initial plan * feat: support .py, .R, .jl files in QuartoPreview Agent-Logs-Url: https://github.com/quarto-dev/quarto-nvim/sessions/108ce2fc-b504-46ab-aa70-47f193830d99 Co-authored-by: jmbuhr <17450586+jmbuhr@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jmbuhr <17450586+jmbuhr@users.noreply.github.com>
1 parent d923bb7 commit cb72652

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/quarto/init.lua

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

6161
-- Check file extensions
62-
local quarto_extensions = { '.qmd', '.Rmd', '.ipynb', '.md' }
62+
local quarto_extensions = { '.qmd', '.Rmd', '.ipynb', '.md', '.py', '.R', '.jl' }
6363
local file_extension = buffer_path:match '^.+(%..+)$'
6464
if mode == 'file' and not file_extension then
6565
vim.notify 'Not in a file. exiting.'

0 commit comments

Comments
 (0)