From e44e44e2dc9c85a90ff3756eb216cf346dc9306d Mon Sep 17 00:00:00 2001 From: Juan Salvatore Date: Fri, 28 Jun 2024 17:09:44 -0300 Subject: [PATCH] fix is_windows check (#8) --- lua/git-dashboard-nvim/git.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/git-dashboard-nvim/git.lua b/lua/git-dashboard-nvim/git.lua index 154e87b..b5a9de7 100644 --- a/lua/git-dashboard-nvim/git.lua +++ b/lua/git-dashboard-nvim/git.lua @@ -1,6 +1,7 @@ local utils = require("git-dashboard-nvim.utils") local config = require("git-dashboard-nvim.config") -local is_windows = vim.fn.has("win32") + +local is_windows = vim.fn.has("win32") == 1 local null = is_windows and "NUL" or "/dev/null" Git = {}