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
472 stars 29 forks source link

Chunk lines are not cleared after scroll window #104

Closed ShiChenCong closed 2 months ago

ShiChenCong commented 2 months ago

Untitled

config file

  {
    "shellRaining/hlchunk.nvim",
    event = { "BufReadPre", "BufNewFile" },
    config = function()
      require("hlchunk").setup({
        chunk = {
          enable = true,
          style = {
            { fg = "#8c98a3" },
          },
        }
      })
    end
  },

nvim version: 0.10.0

shellRaining commented 2 months ago

fixed in dev branch,temporarily close this issue. And dev has many new feature (like animation for chunk), I will merge when it is stable

ShiChenCong commented 1 month ago

broken in less file in dev branch.

shellRaining commented 1 month ago

It seems to be caused by the lack of a treesitter parser for less.

ShiChenCong commented 1 month ago

How to disable plugin for some certain filetypes without using autocmd?

shellRaining commented 1 month ago

If you simply do not want to see the information of notify, you can set notify = false

https://github.com/shellRaining/hlchunk.nvim/blob/main/docs/en/chunk.md#chunk_example1

if does want to disable, just set:

chunk = {
    enable = true,
    exclude_filetypes = {
        less = true,
    },
},

and notice that should update to the latest version to use this feature 😄

ShiChenCong commented 1 month ago

Works like a charm 👍