diff --git a/lua/precognition/init.lua b/lua/precognition/init.lua index 0280e14..6753044 100644 --- a/lua/precognition/init.lua +++ b/lua/precognition/init.lua @@ -357,9 +357,10 @@ function M.setup(opts) au = vim.api.nvim_create_augroup("precognition", { clear = true }) if type(config.highlightColor) == "table" then - vim.api.nvim_set_hl(ns, "precognition", config.highlightColor) - vim.api.nvim_set_hl_ns(ns) - config.highlightColor = "precognition" + local hl_name = "Precognition" + vim.api.nvim_set_hl(ns, hl_name, config.highlightColor) + vim.api.nvim_set_hl_ns(ns) + config.highlightColor = hl_name end if config.startVisible then