Merge pull request #27 from Devidxyz/fix/escape_bracket_in_path

Fix: escape bracket in path
This commit is contained in:
Ali Almohaya 2024-02-02 22:45:47 +03:00 committed by GitHub
commit 52e2727cbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@ local M = {}
function M.setup()
-- get the current working directory and set the url
local current_buffer = vim.fn.expand("%:p:h")
local current_buffer = vim.fn.expand("%:p:h"):gsub("%[", "\\["):gsub("%]", "\\]")
local repo_url = vim.fn.system("git -C " .. current_buffer .. " config --get remote.origin.url")
if repo_url:len() == 0 then