diff options
author | kylo252 <[email protected]> | 2021-08-15 17:38:47 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-15 20:08:47 +0430 |
commit | 6eb75c5678ddb4d040f644e331e222078b99b3a1 (patch) | |
tree | 9830028d434cb9cc4e830346fc40ce392db29721 /lua/plugins.lua | |
parent | f36fd1907fd2480c766d96c65e1aebe69e5c855f (diff) |
[Refactor] Clean-up redundant module-load checks (#1011)
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r-- | lua/plugins.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index 8e497075..5353de5b 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -131,15 +131,9 @@ return { "terrortylor/nvim-comment", event = "BufRead", config = function() - local status_ok, nvim_comment = pcall(require, "nvim_comment") - if not status_ok then - local Log = require "core.log" - Log:get_default().error "Failed to load nvim-comment" - return - end - nvim_comment.setup() + require("nvim_comment").setup() if lvim.builtin.comment.on_config_done then - lvim.builtin.comment.on_config_done(nvim_comment) + lvim.builtin.comment.on_config_done(require "nvim_comment") end end, }, |