summaryrefslogtreecommitdiff
path: root/lua/utils/init.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-08-26 12:49:29 +0200
committerGitHub <[email protected]>2021-08-26 12:49:29 +0200
commit5b94e3cee2c4405e98c9c0e8769670723a1f4bae (patch)
treebeb76ee514df69240d6e954b25372412a0316b2a /lua/utils/init.lua
parentcfefddde9e9376e68ad8fcad3b1cf8cf139456e6 (diff)
fix logging when plenary is not available (#1390)
Diffstat (limited to 'lua/utils/init.lua')
-rw-r--r--lua/utils/init.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/lua/utils/init.lua b/lua/utils/init.lua
index 80a2dbe6..322a961f 100644
--- a/lua/utils/init.lua
+++ b/lua/utils/init.lua
@@ -70,9 +70,7 @@ function utils.toggle_autoformat()
},
},
}
- if Log:get_default() then
- Log:get_default().info "Format on save active"
- end
+ Log:info "Format on save active"
end
if not lvim.format_on_save then
@@ -81,9 +79,7 @@ function utils.toggle_autoformat()
:autocmd! autoformat
endif
]]
- if Log:get_default() then
- Log:get_default().info "Format on save off"
- end
+ Log:info "Format on save off"
end
end
@@ -104,7 +100,7 @@ function utils.reload_lv_config()
-- vim.cmd ":PackerClean"
local null_ls = require "lsp.null-ls"
null_ls.setup(vim.bo.filetype, { force_reload = true })
- Log:get_default().info "Reloaded configuration"
+ Log:info "Reloaded configuration"
end
function utils.unrequire(m)