Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Highlighting cannot be overwritten #70

Closed
edwarmv opened this issue Nov 7, 2021 · 1 comment
Closed

Highlighting cannot be overwritten #70

edwarmv opened this issue Nov 7, 2021 · 1 comment
Assignees
Labels
assigned Under progress.

Comments

@edwarmv
Copy link

edwarmv commented Nov 7, 2021

Hi, I am not able to overwrite the vim-illuminate highlights with the following configuration

require("onedark").setup()
vim.cmd([[hi illuminatedCurWord ctermbg=242 guibg=#393f4a]])
vim.cmd([[hi illuminatedWord ctermbg=242 guibg=#393f4a]])

Thanks for the colorscheme

@ful1e5 ful1e5 self-assigned this Nov 14, 2021
@ful1e5 ful1e5 added the assigned Under progress. label Nov 14, 2021
@Nauticus
Copy link

Nauticus commented Nov 19, 2021

Hi, I've faced the same issue and after spending some time digging around the code I found the culprit. Looks like there is vim.defer_fn call after base theme is loaded. My solution is to defer my overrides after 101 ms which would supersede the defaults:

require("onedark").setup()

local utils = require("onedark.util")

vim.defer_fn(function()
    utils.syntax({ NvimTreeFolderName = { fg = colors.blue, bg = colors.red } })
end, 101) -- 101 is the important part here

Cheers!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
assigned Under progress.
Projects
None yet
Development

No branches or pull requests

3 participants