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

Install with packer question #82

Closed xuzixx closed 7 months ago

xuzixx commented 7 months ago

hlchunk commit id : a17b86f nvim version: v0.8.3

Packer with this config installed seems no use.

use { "shellRaining/hlchunk.nvim" }

and :PackerStatus can see hlchunk.nvim this plugin

When I try to use EnableHL get err , │E492: Not an editor command: EnableHL

I change config like below get another error

     use {
      "shellRaining/hlchunk.nvim",
      config = function()
        require('hlchunk').setup({
            indent = {
                chars = { "│", "¦", "┆", "┊", },
                style = {
                    "#8B00FF",
                },
            },
            blank = {
                enable = false,
            }
        })
      end,
    }
packer.nvim: Error running config for hlchunk.nvim: ...ack/packer/start/hlchunk.nvim/lua/hlchunk/mods/blank.lua:25: attempt to call field 'nvim_get_hl' (a nil value)
shellRaining commented 7 months ago

OK, I will take a look

shellRaining commented 7 months ago

maybe neovim version is too low, nvim_get_hl is not supported yet...

xuzixx commented 7 months ago

maybe neovim version is too low, nvim_get_hl is not supported yet...

那还是更新一下readm 里的nvim 版本吧

xuzixx commented 7 months ago

maybe neovim version is too low, nvim_get_hl is not supported yet...

update to nvim 0.9.4 fix

shellRaining commented 7 months ago

thanks~