diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2024-10-18 21:50:58 -0500 | 
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2024-10-18 21:50:58 -0500 | 
| commit | 43558b3a614de4a9174824b1cb4de8bc1ad147a9 (patch) | |
| tree | b00315d7783f457d675410e36c2a0cf68b022bcc /lua/tjk/plugins/treesitter.lua | |
| download | nvim-43558b3a614de4a9174824b1cb4de8bc1ad147a9.tar.xz nvim-43558b3a614de4a9174824b1cb4de8bc1ad147a9.zip  | |
initial commit
Diffstat (limited to 'lua/tjk/plugins/treesitter.lua')
| -rw-r--r-- | lua/tjk/plugins/treesitter.lua | 32 | 
1 files changed, 32 insertions, 0 deletions
diff --git a/lua/tjk/plugins/treesitter.lua b/lua/tjk/plugins/treesitter.lua new file mode 100644 index 0000000..925fb13 --- /dev/null +++ b/lua/tjk/plugins/treesitter.lua @@ -0,0 +1,32 @@ +return { +	"nvim-treesitter/nvim-treesitter", +	build = ":TSUpdate", +	dependencies = { +		--{ +		--	"nvim-treesitter/playground", -- inspect treesitter structure +		--	cmd = "TSPlaygroundToggle" +		--}, +		"HiPhish/rainbow-delimiters.nvim", -- colored delimiters per scope level +		{ +			"windwp/nvim-ts-autotag", -- close tags in html/xml type languages +			opts = { +				per_filetype = { +					["html"] = { +						enable_close = true +					} +				} +			} +		}, +	}, +	config = function() +		local configs = require("nvim-treesitter.configs") +		configs.setup({ +			ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "comment", +				"javascript", "html", "css", "scss", "python", "php" }, +			auto_install = true, -- install available parsers when entering new buffers +			highlight = { enable = true, disable = { "yaml", "bash", "latex" } }, +			indent = { enable = true, disable = { "yaml" } }, +			--playground = { enable = true }, -- treesitter debug +		}) +	end +}  | 
