hlchunk.nvim
hlchunk.nvim copied to clipboard
Line_num not working with html file, css
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 <>.
In the above picture I added in comment some curly braces and it works. Maybe will be good to add some more signs .
@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
},