Skip to content

Commit

Permalink
fixup!: take 2 for comment.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
kylo252 committed Oct 15, 2022
1 parent b387002 commit 0df4e5d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lua/lvim/core/comment.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
local M = {}

function M.config()
local pre_hook = function(_)
local loaded, ts_comment = pcall(require, "ts_context_commentstring.integrations.comment_nvim")
if not loaded then
return
end
return ts_comment.create_pre_hook()
local pre_hook
local loaded, ts_comment = pcall(require, "ts_context_commentstring.integrations.comment_nvim")
if loaded and ts_comment then
pre_hook = ts_comment.create_pre_hook()
end
lvim.builtin.comment = {
active = true,
Expand Down

0 comments on commit 0df4e5d

Please sign in to comment.