Skip to content

Commit

Permalink
Fixes indentation, highlight casing.
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-nz committed May 23, 2024
1 parent 1cdbde3 commit e8b35c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/precognition/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8b35c4

Please sign in to comment.