File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed 
lua/modules/configs/completion Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 11return  function ()
2- 	local  snippet_path  =  vim .fn .stdpath (" config" ..  " /snips/" 
3- 	if  not  vim .tbl_contains (vim .opt .rtp :get (), snippet_path ) then 
4- 		vim .opt .rtp :append (snippet_path )
5- 	end 
2+ 	local  vim_path  =  require (" core.global" vim_path 
3+ 	local  snippet_path  =  vim_path  ..  " /snips/" 
4+ 	local  user_snippet_path  =  vim_path  ..  " /lua/user/snips/" 
65
76	require (" modules.utils" load_plugin (" luasnip" 
87		history  =  true ,
98		update_events  =  " TextChanged,TextChangedI" 
109		delete_check_events  =  " TextChanged,InsertLeave" 
1110	}, false , require (" luasnip" config .set_config )
11+ 
12+ 	require (" luasnip.loaders.from_vscode" lazy_load ({
13+ 		paths  =  {
14+ 			snippet_path ,
15+ 			user_snippet_path ,
16+ 		},
17+ 	})
1218	require (" luasnip.loaders.from_lua" lazy_load ()
1319	require (" luasnip.loaders.from_vscode" lazy_load ()
1420	require (" luasnip.loaders.from_snipmate" lazy_load ({
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments