From e8b35c4f9dcbd837b199889f3da47abefb6bb6d3 Mon Sep 17 00:00:00 2001 From: Joshua Wood Date: Thu, 23 May 2024 19:43:15 +1200 Subject: [PATCH] Fixes indentation, highlight casing. --- lua/precognition/init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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