@@ -324,17 +324,17 @@ local function find_git_root()
324324 local current_dir
325325 local cwd = vim .fn .getcwd ()
326326 -- If the buffer is not associated with a file, return nil
327- if current_file == " " then
327+ if current_file == ' ' then
328328 current_dir = cwd
329329 else
330330 -- Extract the directory from the current file's path
331- current_dir = vim .fn .fnamemodify (current_file , " :h " )
331+ current_dir = vim .fn .fnamemodify (current_file , ' :h ' )
332332 end
333333
334334 -- Find the Git root directory from the current file's path
335- local git_root = vim .fn .systemlist (" git -C " .. vim .fn .escape (current_dir , " " ) .. " rev-parse --show-toplevel" )[1 ]
335+ local git_root = vim .fn .systemlist (' git -C ' .. vim .fn .escape (current_dir , ' ' ) .. ' rev-parse --show-toplevel' )[1 ]
336336 if vim .v .shell_error ~= 0 then
337- print ( " Not a git repository. Searching on current working directory" )
337+ print ' Not a git repository. Searching on current working directory'
338338 return cwd
339339 end
340340 return git_root
344344local function live_grep_git_root ()
345345 local git_root = find_git_root ()
346346 if git_root then
347- require (' telescope.builtin' ).live_grep ( {
348- search_dirs = {git_root },
349- })
347+ require (' telescope.builtin' ).live_grep {
348+ search_dirs = { git_root },
349+ }
350350 end
351351end
352352
@@ -567,7 +567,7 @@ cmp.setup {
567567 end ,
568568 },
569569 completion = {
570- completeopt = ' menu,menuone,noinsert'
570+ completeopt = ' menu,menuone,noinsert' ,
571571 },
572572 mapping = cmp .mapping .preset .insert {
573573 [' <C-n>' ] = cmp .mapping .select_next_item (),
0 commit comments