gitsign: handling file path with spaces

pull/1890/head
Ashish 1 year ago committed by Sidhanth Rathod
parent a5906e48fb
commit 4d45597468

@ -101,7 +101,7 @@ local default_plugins = {
vim.api.nvim_create_autocmd({ "BufRead" }, {
group = vim.api.nvim_create_augroup("GitSignsLazyLoad", { clear = true }),
callback = function()
vim.fn.system("git -C " .. vim.fn.expand "%:p:h" .. " rev-parse")
vim.fn.system("git -C " .. '"' .. vim.fn.expand "%:p:h" .. '"' .. " rev-parse")
if vim.v.shell_error == 0 then
vim.api.nvim_del_augroup_by_name "GitSignsLazyLoad"
vim.schedule(function()

Loading…
Cancel
Save