summaryrefslogtreecommitdiff
path: root/lua/plugins/hl-mdcodeblock.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/hl-mdcodeblock.lua')
-rw-r--r--lua/plugins/hl-mdcodeblock.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/lua/plugins/hl-mdcodeblock.lua b/lua/plugins/hl-mdcodeblock.lua
index 3221678..b7bd7f3 100644
--- a/lua/plugins/hl-mdcodeblock.lua
+++ b/lua/plugins/hl-mdcodeblock.lua
@@ -3,8 +3,8 @@ return {
dependencies = { 'nvim-treesitter/nvim-treesitter' },
config = function()
require('hl-mdcodeblock').setup({
- hl_group = "MDCodeBlock", -- default highlight group
- events = { -- refresh event
+ hl_group = "MDCodeBlock", -- default highlight group
+ events = { -- refresh event
"FileChangedShellPost",
"Syntax",
"TextChanged",
@@ -13,19 +13,19 @@ return {
"WinScrolled",
"BufEnter",
},
- padding_right = 4, -- always append 4 space at lineend
- timer_delay = 20, -- refresh delay(ms)
- query_by_ft = { -- special parser query by filetype
- markdown = { -- filetype
- 'markdown', -- parser
+ padding_right = 4, -- always append 4 space at lineend
+ timer_delay = 20, -- refresh delay(ms)
+ query_by_ft = { -- special parser query by filetype
+ markdown = { -- filetype
+ 'markdown', -- parser
'(fenced_code_block) @codeblock', -- query
},
- rmd = { -- filetype
- 'markdown', -- parser
+ rmd = { -- filetype
+ 'markdown', -- parser
'(fenced_code_block) @codeblock', -- query
},
},
- minumum_len = 100, -- minimum len to highlight (number | function)
+ minumum_len = 100, -- minimum len to highlight (number | function)
-- minumum_len = function () return math.max(math.floor(vim.api.nvim_win_get_width(0) * 0.8), 100) end
})
end,