diff options
author | chaeing <[email protected]> | 2021-08-26 00:20:04 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-26 11:50:04 +0430 |
commit | 291c8bb5bd894b4da7c9e684915348a094a13aae (patch) | |
tree | 97dc66b413798a89dc3f6136f8d013e4d89b2c44 /lua/core/lualine/conditions.lua | |
parent | a83fffdc80bbd50b9a797adcab8ce29f0fdfacc2 (diff) |
[Refactor] Lualine component conditions (#1394)
Diffstat (limited to 'lua/core/lualine/conditions.lua')
-rw-r--r-- | lua/core/lualine/conditions.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/core/lualine/conditions.lua b/lua/core/lualine/conditions.lua index 2d2d81ef..3ee4fbb8 100644 --- a/lua/core/lualine/conditions.lua +++ b/lua/core/lualine/conditions.lua @@ -7,11 +7,11 @@ local conditions = { hide_in_width = function() return vim.fn.winwidth(0) > window_width_limit end, - check_git_workspace = function() - local filepath = vim.fn.expand "%:p:h" - local gitdir = vim.fn.finddir(".git", filepath .. ";") - return gitdir and #gitdir > 0 and #gitdir < #filepath - end, + -- check_git_workspace = function() + -- local filepath = vim.fn.expand "%:p:h" + -- local gitdir = vim.fn.finddir(".git", filepath .. ";") + -- return gitdir and #gitdir > 0 and #gitdir < #filepath + -- end, } return conditions |