Kaynağa Gözat

nixpkgs/neovim: update diff highlight colors

Thomas Dy 1 hafta önce
ebeveyn
işleme
02d0950360

+ 9 - 0
.config/nixpkgs/neovim/config/lua/user/theme.lua

@@ -58,6 +58,15 @@ vim.api.nvim_create_autocmd('ColorScheme', {
     vim.fn['sonokai#highlight']('MiniStatuslineModeReplace', palette.black, palette.red)
     vim.fn['sonokai#highlight']('MiniStatuslineModeOther', palette.black, palette.green)
 
+    -- make deleted text less bright
+    vim.fn['sonokai#highlight']('DiffDelete', palette.grey, palette.diff_red)
+
+    -- use yellow for changes
+    vim.fn['sonokai#highlight']('DiffChange', palette.none, { '#4f4f00', '58' })
+    -- this is orange-ish
+    vim.fn['sonokai#highlight']('DiffText', palette.none, { '#6f4f00', '94' })
+    vim.fn['sonokai#highlight']('MiniDiffSignChange', palette.yellow, palette.none)
+
     init_active_ns()
   end,
 })