You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when I try to comment lines inside a qmd file, it behaves strangely and mixes up python and markdown comment strings. This also affects regular md files.
Here is an example
Screencast_20251205_142419.webm
I use the default Neovim keybinding gcc.
Disabling quarto-nvim solves the issue in md files.
Novim version: v0.11.5
quarto: v1.8.26
Commenting everything in quarto.lua solves the issue for md files.
return {
{
"nvim-treesitter/nvim-treesitter",
dependencies= {
"OXY2DEV/markview.nvim",
"hiphish/rainbow-delimiters.nvim",
},
lazy=false,
build=":TSUpdate",
main="nvim-treesitter.configs", -- Sets main module to use for opts-- See `:help nvim-treesitter`opts= {
ensure_installed= {
"bash",
"c",
"diff",
"lua",
"luadoc",
"markdown",
"markdown_inline",
"vim",
"vimdoc",
"python",
"cmake",
},
-- Autoinstall languages that are not installedauto_install=true,
highlight= {
enable=true,
disable= { "tmux" }, -- Poor support-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.-- If you are experiencing weird indenting issues, add the language to-- the list of additional_vim_regex_highlighting and disabled languages for indent.additional_vim_regex_highlighting= { "ruby" },
},
indent= { enable=true, disable= { "ruby", "cmake" } },
},
-- There are additional nvim-treesitter modules that you can use to interact-- with nvim-treesitter. You should go explore a few and see what interests you:---- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
},
}
I noticed that when I try to comment lines inside a qmd file, it behaves strangely and mixes up python and markdown comment strings. This also affects regular md files.
Here is an example
Screencast_20251205_142419.webm
I use the default Neovim keybinding
gcc.Disabling
quarto-nvimsolves the issue in md files.Novim version: v0.11.5
quarto: v1.8.26
Commenting everything in
quarto.luasolves the issue for md files.quarto.luatreesitter.luamarkdown.lua