diff options
Diffstat (limited to '.config/nvim/lua/plugins/treesitter.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/treesitter.lua | 33 | 
1 files changed, 33 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..8ec46fc --- /dev/null +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,33 @@ +return { +	{ +		"nvim-treesitter/nvim-treesitter", +		branch = 'master', +		lazy = false, +		build = ":TSUpdate", +		config = function() +			local config = require("nvim-treesitter.configs") +			config.setup({ +				ensure_installed = { +					"bash", +					"lua", +					"javascript", +					"c", +					"cpp", +					"json", +					"go", +					"markdown", +					"meson", +					"make", +					"cmake", +					"python", +					"rust", +					"yaml", +					"toml", +					"ron", +				}, +				highlight = { enable = true }, +				indent = { enable = true }, +			}) +		end +	} +}  |