Skip to content

Commit

Permalink
feat(concealer): add ability to disable spell checking in code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
0x546F6D committed Dec 26, 2023
1 parent 03a1cb7 commit 316403a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ module.public = {
virt_text = not to_eol and { { (" "):rep(mark_col_end_0bex - len), config.highlight } } or nil,
virt_text_pos = "overlay",
virt_text_win_col = len,
spell = config.spell_check,
})
else
vim.api.nvim_buf_set_extmark(bufid, module.private.ns_icon, row_0b, len, {
Expand All @@ -641,6 +642,7 @@ module.public = {
},
virt_text_pos = "overlay",
virt_text_win_col = len,
spell = config.spell_check,
})
end
end
Expand Down Expand Up @@ -951,6 +953,9 @@ module.config.public = {
-- block.
conceal = false,

-- If `false` will disable spell check on code blocks when 'spell' option is switched on.
spell_check = true,

nodes = { "ranged_verbatim_tag" },
highlight = "@neorg.tags.ranged_verbatim.code_block",
render = module.public.icon_renderers.render_code_block,
Expand Down

0 comments on commit 316403a

Please sign in to comment.