hlchunk.nvim icon indicating copy to clipboard operation
hlchunk.nvim copied to clipboard

Line_num not working with html file, css

Open mcp1766 opened this issue 1 year ago • 1 comments

Have configurate the plugin. Works well with lua codes but not with html file

return {
  "shellRaining/hlchunk.nvim",
  event = { "BufReadPre", "BufNewFile" },
  config = function()
    local default_conf = {
      style = {
        hibiscus = "#806d9c",
      },
    },
  
  require("hlchunk").setup({

    line_num = {
      enable = true,
    },
    indent = {
      enable = false,
    },
    chunk = {
      enable = true,
    },
    blank = {
      enable = false,
    },
  })
  end,
}

Seems that line_num only works when detecting {} signs but not other like <>.

Capture d’écran du 2025-01-04 07-02-10

In the above picture I added in comment some curly braces and it works. Maybe will be good to add some more signs .

mcp1766 avatar Jan 03 '25 23:01 mcp1766

@mcp1766 Hi, Can you try the following settings? Regarding the default value of use_treesitter, line_num is false and chunk is true, which may cause differences in behavior.

    line_num = {
      enable = true,
      use_treesitter = true, -- default: false
    },
    chunk = {
      enable = true,
      use_treesitter = true, -- default: true
    },

ediezindell avatar Jun 25 '25 05:06 ediezindell