From fc03b940ded5682665278894b45c23559221264a Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 17 Feb 2026 19:24:25 -0500 Subject: [PATCH] fix: format lua and highlight latex functions --- lua/midnight/init.lua | 4 +++- lua/midnight/theme.lua | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/midnight/init.lua b/lua/midnight/init.lua index 670aaeb..41d066f 100644 --- a/lua/midnight/init.lua +++ b/lua/midnight/init.lua @@ -4,7 +4,9 @@ local loading = false ---@return nil function M.load() - if loading then return end + if loading then + return + end loading = true if vim.g.colors_name then diff --git a/lua/midnight/theme.lua b/lua/midnight/theme.lua index c32d23c..a4d786f 100644 --- a/lua/midnight/theme.lua +++ b/lua/midnight/theme.lua @@ -165,6 +165,8 @@ function M.apply() hi('@constructor.lua', { fg = cs.background }) hi('@markup.heading.gitcommit', { none = true }) + hi('@function.latex', { fg = cs.blue }) + hi('GitSignsCurrentLineBlame', { italic = true, fg = cs.light_black }) link('DiffAdd', 'GitSignsAdd') link('DiffChange', 'GitSignsChange')