Not a question
I investigated.
Description
A couple of issues related to the highlighter and the excludes option:
- I notice in the code that highlighting should be disabled in the UI (ref), but the highlighter still seems to be on in the output line:
- In excludes I have added the "lazy" ft, but it still seems to be highlighting short hexes (it treats PR # as short hex):
highlighter = {
auto_enable = true,
lsp = true,
excludes = { "lazy" },
},
Environments
OS: Linux (Arch - CachyOS)
neovim: 0.11.5
Minimal reproducible full config
using this to bootstrap lazyvim. pulling an old version of tokyonight to see some PR#
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{
"uga-rosa/ccc.nvim",
opts = {
highlighter = {
auto_enable = true,
excludes = { "lazy" },
},
},
},
{
"folke/tokyonight.nvim",
tag = "v4.6.0",
},
},
})
Steps to reproduce
- create a file with some hex code
:CccPick and the output line will still be highlighted
:Lazy, hit CR on tokyonight and at the bottom PR #600 will be treated like a shorthex and be highlighted, even though the lazy ft has been excluded in the config
Expected behavior
- No highlighting in the ccc ui
- No highlighting in lazy ft if its in the exclude table
Actual behavior
Highlights are showing up even tho ft is excluded
Additional context
No response
Not a question
I investigated.
Description
A couple of issues related to the highlighter and the excludes option:
Environments
OS: Linux (Arch - CachyOS)
neovim: 0.11.5
Minimal reproducible full config
using this to bootstrap lazyvim. pulling an old version of tokyonight to see some PR#
Steps to reproduce
:CccPickand the output line will still be highlighted:Lazy, hit CR on tokyonight and at the bottom PR #600 will be treated like a shorthex and be highlighted, even though the lazy ft has been excluded in the configExpected behavior
Actual behavior
Highlights are showing up even tho ft is excluded
Additional context
No response