Skip to content

Commit

Permalink
fix: only enable custom code cell highlights for nvim >= 0.10. fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Apr 30, 2024
1 parent 7859bad commit a5ad7e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ftplugin/quarto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ vim.api.nvim_set_hl(ns, '@markup.strikethrough', { strikethrough = false })
vim.api.nvim_set_hl(ns, '@markup.doublestrikethrough', { strikethrough = true })
vim.api.nvim_win_set_hl_ns(0, ns)

-- ts based code chunk highlighting uses a change
-- only availabl in nvim >= 0.10
if vim.fn.has 'nvim-0.10.0' == 0 then
return
end

-- highlight code cells similar to
-- 'lukas-reineke/headlines.nvim'
-- (disabled in lua/plugins/ui.lua)
Expand Down

0 comments on commit a5ad7e1

Please sign in to comment.