theniceboy / nvim

The Ultimate NeoVim Config for Colemak Users
2.02k stars 560 forks source link

config about hlchunk.nvim #95

Closed shellRaining closed 1 year ago

shellRaining commented 1 year ago

hi, there are some place that I don't understand, such as why we use "init" instead of "config" for configuration, and why add this autocmd, CursorMoved is quite cost time I think, there is no need to execute EnableHL each time move cursor.

https://github.com/theniceboy/nvim/blob/lua-migration/lua/config/plugins/indent.lua#L4-L6

maybe can change to

config = function()
    require('hlchunk').setup({
        chunk = {
            enable = true,
            use_treesitter = true,
            style = {
                { fg = "#806d9c" },
            },
        },
        indent = {
            chars = { "│", "¦", "┆", "┊", },
            use_treesitter = false,
        },
        blank = {
            enable = false,
        },
        line_num = {
            use_treesitter = true,
        },
    })
end
theniceboy commented 1 year ago

For some reason if I don't add the autocmd the highlights won't update. Are you seeing this?

shellRaining commented 1 year ago

🤣oh oh I know, when open a dart file, the chunk will not render for some reason... I will fix this as soon as possible

theniceboy commented 1 year ago

@shellRaining Salute

shellRaining commented 1 year ago

add dart support in 0d3c1af