Skip to content

Commit

Permalink
fix: neovim loader function
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Cancelinha committed Sep 14, 2023
1 parent 86bb167 commit 2463f1a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lua/northern/utils.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
local utils = {}

function version()
function utils.preload()
if vim.version().minor < 8 then
vim.notify_once("northern.nvim: you must use neovim 0.8 or higher")
return
end
end

utils.preload = function()
version()

-- reset default highlights
vim.cmd.hi("clear")
Expand All @@ -21,7 +17,7 @@ utils.preload = function()
vim.g.colors_name = "northern"
end

function util.load(sections)
function utils.load(sections)
for _, section in pairs(sections) do
for group, highlight in pairs(section) do
vim.api.nvim_set_hl(0, group, highlight)
Expand Down

0 comments on commit 2463f1a

Please sign in to comment.