shellRaining / hlchunk.nvim

This is the lua implementation of nvim-hlchunk, you can use this neovim plugin to highlight your indent line and the current chunk (context) your cursor stayed
MIT License
628 stars 31 forks source link

the hlchunk color become white which I haven't changed the configure #105

Closed xbunax closed 4 months ago

xbunax commented 4 months ago

I use lazyvim this is my nvim version

 nvim -v
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1716656478
Run "nvim -V1 -v" for more info

This is my configure

return {

  "shellRaining/hlchunk.nvim",
  event = { "BufReadPre", "BufNewFile" },
  config = function()
    require("hlchunk").setup({
      chunk = {
        chars = {
          horizontal_line = "─",
          vertical_line = "│",
          left_top = "╭",
          left_bottom = "╰",
          right_arrow = ">",
        },
        -- style = "#806d9c",
        style = {
          vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID("Whitespace")), "fg", "gui"),
        },
      },
      indent = {
        chars = { "│", "¦", "┆", "┊" },
        use_treesitter = true,
      },
      blank = {
        enable = false,
      },
      line_num = {
        style = "#806d9c",
        priority = 10,
        use_treesitter = false,
      },
    })
  end,
}
xbunax commented 4 months ago

ok,I just find that I don't use enable=true.