Skip to content

Commit

Permalink
fix: make reset_highlights work roperly
Browse files Browse the repository at this point in the history
  • Loading branch information
famiu committed Sep 11, 2021
1 parent 617a4a6 commit c7b29c2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/feline/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ local M = {}

-- Reset highlights
function M.reset_highlights()
local highlights = require('feline.generator').highlights

for hl, _ in pairs(highlights) do
for hl, _ in pairs(require('feline.generator').highlights) do
cmd('hi clear ' .. hl)
end

highlights = {}
require('feline.generator').highlights = {}
end

local function parse_config(config_dict, config_name, expected_type, default_value)
Expand Down

0 comments on commit c7b29c2

Please sign in to comment.