Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
repatch d0508d0
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Apr 14, 2022
1 parent 7f9709f commit 1f56c49
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lua/onedark/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ autocmds.native_cmds = function(config)
group = group,
callback = function()
if vim.g.colors_name ~= 'onedark' then
pcall(vim.api.nvim_del_augroup_by_id(group))
pcall(vim.api.nvim_del_augroup_by_id, group)
end
end,
})
Expand Down Expand Up @@ -84,10 +84,7 @@ end
---@param config od.ConfigSchema
autocmds.set = function(config)
if vim.fn.has('nvim-0.7') == 1 then
local exc, _ = pcall(function()
autocmds.native_cmds(config)
end)
if not exc then
if not pcall(autocmds.native_cmds, config) then
autocmds.viml_cmds(config)
end
else
Expand Down

0 comments on commit 1f56c49

Please sign in to comment.