Skip to content

Commit

Permalink
make helper function return code context
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Feb 12, 2024
1 parent db9d131 commit feb64a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/otter/tools/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ M.is_otter_language_context = function(lang)
local current = require("otter.keeper").get_current_language_context()
if current == lang then
vim.b["quarto_is_" .. lang .. "_chunk"] = true
return true
else
return false
end
end

Expand Down

0 comments on commit feb64a6

Please sign in to comment.