mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-03 20:22:21 +00:00 
			
		
		
		
	Compare commits
	
		
			2 commits
		
	
	
		
			
				9b11e6e938
			
			...
			
				6b841d4b97
			
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
							
							
								
							
							
	
	
	6b841d4b97 | 
						
						
							|||
| 
							 | 
						47dcff9d56 | 
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -106,7 +106,7 @@ in {
 | 
				
			||||||
          -- Disable slow treesitter highlight for large files
 | 
					          -- Disable slow treesitter highlight for large files
 | 
				
			||||||
          function(lang, buf)
 | 
					          function(lang, buf)
 | 
				
			||||||
            local max_filesize = 1000 * 1024 -- 1MB
 | 
					            local max_filesize = 1000 * 1024 -- 1MB
 | 
				
			||||||
            local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
 | 
					            local ok, stats = pcall(vim.uv.fs_stat, vim.api.nvim_buf_get_name(buf))
 | 
				
			||||||
            if ok and stats and stats.size > max_filesize then
 | 
					            if ok and stats and stats.size > max_filesize then
 | 
				
			||||||
                return true
 | 
					                return true
 | 
				
			||||||
            end
 | 
					            end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -39,7 +39,7 @@ in {
 | 
				
			||||||
          type = luaInline;
 | 
					          type = luaInline;
 | 
				
			||||||
          default = mkLuaInline ''
 | 
					          default = mkLuaInline ''
 | 
				
			||||||
            function()
 | 
					            function()
 | 
				
			||||||
              return vim.loop.cwd()
 | 
					              return vim.uv.cwd()
 | 
				
			||||||
            end
 | 
					            end
 | 
				
			||||||
          '';
 | 
					          '';
 | 
				
			||||||
          description = ''
 | 
					          description = ''
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue