mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-11-04 14:31:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			545 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			545 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
return {
 | 
						|
  -- folding improvements
 | 
						|
  {
 | 
						|
    'kevinhwang91/nvim-ufo',
 | 
						|
    dependencies = { 'kevinhwang91/promise-async' },
 | 
						|
    config = function()
 | 
						|
      require('ufo').setup()
 | 
						|
      vim.api.nvim_create_autocmd({ 'BufEnter', 'FileType' },
 | 
						|
        {
 | 
						|
          pattern = { '*' },
 | 
						|
          callback = function() require("ufo").closeAllFolds() end
 | 
						|
        })
 | 
						|
      vim.api.nvim_create_autocmd({ 'BufEnter', 'FileType' },
 | 
						|
        {
 | 
						|
          pattern = { '*' },
 | 
						|
          callback = function() require("ufo").openAllFolds() end
 | 
						|
        })
 | 
						|
    end
 | 
						|
  }
 | 
						|
}
 |