Skip to content

Commit

Permalink
Fix bug caused by multiple setup calls clobbering icon map names
Browse files Browse the repository at this point in the history
  • Loading branch information
njhoffman authored and kyazdani42 committed Sep 8, 2021
1 parent c8ce86d commit 1a94ff0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/nvim-web-devicons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,8 @@ end
local loaded = false

local function setup(opts)
if loaded then return end

loaded = true

local user_icons = opts or {}
Expand Down

0 comments on commit 1a94ff0

Please sign in to comment.