diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2024-02-12 12:19:51 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2024-02-12 12:19:51 -0600 |
commit | 616b79bd3dd74d935defbb794bbcf5fc51fb8b24 (patch) | |
tree | 1b15528c21ceb54b88752e2f77d019e70f66fe5f /lua/plugins/hl-mdcodeblock.lua | |
parent | b71c749fb6e550a0f6ec3b03bf6b46d2ce5f8712 (diff) |
feat: add md headlines, remove mdcodeblocks (not needed)
Diffstat (limited to 'lua/plugins/hl-mdcodeblock.lua')
-rw-r--r-- | lua/plugins/hl-mdcodeblock.lua | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/lua/plugins/hl-mdcodeblock.lua b/lua/plugins/hl-mdcodeblock.lua deleted file mode 100644 index b7bd7f3..0000000 --- a/lua/plugins/hl-mdcodeblock.lua +++ /dev/null @@ -1,32 +0,0 @@ -return { - 'yaocccc/nvim-hl-mdcodeblock.lua', - dependencies = { 'nvim-treesitter/nvim-treesitter' }, - config = function() - require('hl-mdcodeblock').setup({ - hl_group = "MDCodeBlock", -- default highlight group - events = { -- refresh event - "FileChangedShellPost", - "Syntax", - "TextChanged", - "TextChangedI", - "InsertLeave", - "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 - '(fenced_code_block) @codeblock', -- query - }, - rmd = { -- filetype - 'markdown', -- parser - '(fenced_code_block) @codeblock', -- query - }, - }, - 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, -} |