diff options
| author | kylo252 <[email protected]> | 2021-08-26 12:49:29 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-26 12:49:29 +0200 | 
| commit | 5b94e3cee2c4405e98c9c0e8769670723a1f4bae (patch) | |
| tree | beb76ee514df69240d6e954b25372412a0316b2a /lua/core/lualine | |
| parent | cfefddde9e9376e68ad8fcad3b1cf8cf139456e6 (diff) | |
fix logging when plenary is not available (#1390)
Diffstat (limited to 'lua/core/lualine')
| -rw-r--r-- | lua/core/lualine/styles.lua | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/lua/core/lualine/styles.lua b/lua/core/lualine/styles.lua index 876d7fa3..53b0691e 100644 --- a/lua/core/lualine/styles.lua +++ b/lua/core/lualine/styles.lua @@ -112,14 +112,13 @@ function M.get_style(style)    local style_keys = vim.tbl_keys(styles)    if not vim.tbl_contains(style_keys, style) then      local Log = require "core.log" -    local logger = Log:get_default() -    logger.error( +    Log:error(        "Invalid lualine style",        string.format('"%s"', style),        "options are: ",        string.format('"%s"', table.concat(style_keys, '", "'))      ) -    logger.info '"lvim" style is applied.' +    Log:info '"lvim" style is applied.'      style = "lvim"    end | 
