Skip to content

Commit b78ed26

Browse files
committed
fix(oil): update environment variable for git highlights
- Users can now disable git highlights using a new variable. - The previous variable for enabling highlights has been replaced. - This change provides clearer control over git highlight settings.
1 parent 326d839 commit b78ed26

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lazy-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"copilot.lua": { "branch": "master", "commit": "46f4b7d026cba9497159dcd3e6aa61a185cb1c48" },
66
"flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" },
77
"guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" },
8-
"gx.nvim": { "branch": "main", "commit": "5e4eaa8e81c2467a4eaf4bee95d6c43d9d8c1a38" },
8+
"gx.nvim": { "branch": "main", "commit": "0c3fa96b339bf9f29d8c643227eb6054d2bce2e9" },
99
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
1010
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
1111
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },

plugin/filetypes/oil.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ end
202202
local is_initialized = false
203203

204204
local function initialize()
205-
if is_initialized or vim.fn.env_get("OIL_GIT_HIGHLIGHTS") == "true" then
205+
if is_initialized or vim.fn.env_get("OIL_DISABLE_GIT_HIGHLIGHTS") == "true" then
206206
return
207207
end
208208

0 commit comments

Comments
 (0)