Skip to content

Commit

Permalink
fix: invalid vim.cmd syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Mar 24, 2024
1 parent 73db6b5 commit affdd6f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lua/neorg/modules/core/integrations/treesitter/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ local function install_norg_ts()
error(err)
end
else
vim.cmd.TSInstallSync({ args = "norg", bang = true})
vim.cmd.TSInstallSync({ args = { "norg" }, bang = true })
end
end

Expand All @@ -790,14 +790,10 @@ module.on_event = function(event)
local ok, err = pcall(install_norg_ts)

if not ok then
utils.notify(
string.format([[Unable to auto-install Norg parser: %s]], err),
vim.log.levels.WARN
)
utils.notify(string.format([[Unable to auto-install Norg parser: %s]], err), vim.log.levels.WARN)
end


pcall(vim.cmd.TSInstallSync, { args = "norg_meta", bang = true })
pcall(vim.cmd.TSInstallSync, { args = { "norg_meta" }, bang = true })
end
end

Expand Down

0 comments on commit affdd6f

Please sign in to comment.