mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-11-03 22:11:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
		
			876 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			876 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
return {
 | 
						|
  -- better language highlighting by improved parsing
 | 
						|
  {
 | 
						|
    'nvim-treesitter/nvim-treesitter',
 | 
						|
    build = ':TSUpdate',
 | 
						|
    dependencies = {
 | 
						|
      -- automatically close html-tags
 | 
						|
      'windwp/nvim-ts-autotag',
 | 
						|
      -- color brackets
 | 
						|
      -- 'p00f/nvim-ts-rainbow',
 | 
						|
    },
 | 
						|
    config = function()
 | 
						|
      require("nvim-treesitter.configs").setup({
 | 
						|
        ensure_installed = {
 | 
						|
          "bash",
 | 
						|
          "css",
 | 
						|
          "html",
 | 
						|
          "markdown",
 | 
						|
          "markdown_inline",
 | 
						|
          "latex",
 | 
						|
          "python",
 | 
						|
          "rust",
 | 
						|
          "lua",
 | 
						|
        },
 | 
						|
        -- highlight = { enable = true },
 | 
						|
        autotag = { enable = false },
 | 
						|
        -- rainbow = {
 | 
						|
        --   enable = true,
 | 
						|
        --   extended_mode = true,
 | 
						|
        --   max_file_lines = nil,
 | 
						|
        --   -- colors = {},
 | 
						|
        --   -- termcolors = {}
 | 
						|
        -- }
 | 
						|
      })
 | 
						|
    end
 | 
						|
  }
 | 
						|
}
 |