diff --git a/lua/openingh/init.lua b/lua/openingh/init.lua index 6ba2b70..dbda762 100644 --- a/lua/openingh/init.lua +++ b/lua/openingh/init.lua @@ -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