First commit
This commit is contained in:
		
							
								
								
									
										31
									
								
								lua/plugins/treesitter.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								lua/plugins/treesitter.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,31 @@
 | 
			
		||||
local langs = {
 | 
			
		||||
	"lua",
 | 
			
		||||
	"javascript",
 | 
			
		||||
	"typescript",
 | 
			
		||||
	"python",
 | 
			
		||||
	"go",
 | 
			
		||||
	"html",
 | 
			
		||||
	"css",
 | 
			
		||||
	"scss",
 | 
			
		||||
	"json",
 | 
			
		||||
	"php",
 | 
			
		||||
	"tsx",
 | 
			
		||||
	"sql",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
return {
 | 
			
		||||
	{
 | 
			
		||||
		"nvim-treesitter/nvim-treesitter",
 | 
			
		||||
		build = ":TSUpdate",
 | 
			
		||||
		config = function()
 | 
			
		||||
			local configs = require("nvim-treesitter.configs")
 | 
			
		||||
 | 
			
		||||
			configs.setup({
 | 
			
		||||
				ensure_installed = langs,
 | 
			
		||||
				sync_install = false,
 | 
			
		||||
				highlight = { enable = true },
 | 
			
		||||
				indent = { enable = true },
 | 
			
		||||
			})
 | 
			
		||||
		end,
 | 
			
		||||
	},
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user