Skip to content

Commit

Permalink
fix: fix error when lazy option = false
Browse files Browse the repository at this point in the history
  • Loading branch information
sontungexpt committed Nov 4, 2023
1 parent 2ffafe3 commit 647ff55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ any idea to create a new component, please open an issue or pull request.
config = function(_, opts)
require("sttusline").setup {
-- the colors of statusline will be set follow the colors of the active buffer
-- statusline_color = "#fdff00",
statusline_color = "StatusLine",
-- statusline_color = "#fdff00",
statusline_color = "StatusLine",
disabled = {
filetypes = {
-- "NvimTree",
Expand Down
2 changes: 1 addition & 1 deletion lua/sttusline/runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ end
M.init = function(opts)
M.foreach_component(opts, function(component, index)
if component.lazy == false then
M.update_component_value(component, index)
M.update_component_value(opts, component, index)
else
statusline[index] = ""
end
Expand Down

0 comments on commit 647ff55

Please sign in to comment.