Skip to content

Commit

Permalink
Pass config into highlight autocmd
Browse files Browse the repository at this point in the history
  • Loading branch information
CKolkey committed Oct 17, 2024
1 parent 2c11d1c commit 5f555a8
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions lua/neogit/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@ local M = {}

local api = vim.api

local a = require("plenary.async")
local status_buffer = require("neogit.buffers.status")
local git = require("neogit.lib.git")
local group = require("neogit").autocmd_group

function M.setup()
local a = require("plenary.async")
local status_buffer = require("neogit.buffers.status")
local git = require("neogit.lib.git")
local group = require("neogit").autocmd_group

api.nvim_create_autocmd({ "ColorScheme" }, {
callback = require("neogit.lib.hl").setup,
callback = function()
local config = require("neogit.config")
local highlight = require("neogit.lib.hl")

highlight.setup(config.values)
end,
group = group,
})

Expand Down

0 comments on commit 5f555a8

Please sign in to comment.