Parent directory

treesitter.lua

1169 bytes
 1return {
 2	{
 3		"nvim-treesitter/nvim-treesitter",
 4		branch = "main",
 5		lazy = false,
 6		build = ":TSUpdate",
 7		config = function()
 8			local disabled_ft = { zsh = true, csv = true, nginx = true }
 9			vim.api.nvim_create_autocmd("BufEnter", {
10				callback = function()
11					if not disabled_ft[vim.bo.filetype] then
12						pcall(vim.treesitter.start)
13					end
14				end,
15			})
16		end,
17	},
18	{
19		"lewis6991/ts-install.nvim",
20		dependencies = "nvim-treesitter/nvim-treesitter",
21		config = function()
22			require("ts-install").setup({
23				auto_install = true,
24				ensure_install = {
25					"bash",
26					"css",
27					"go",
28					"html",
29					"javascript",
30					"json",
31					"lua",
32					"luadoc",
33					"luap",
34					"markdown",
35					"markdown_inline",
36					"python",
37					"regex",
38					"rust",
39					"templ",
40					"typescript",
41					"yaml",
42				},
43			})
44		end,
45	},
46	"alker0/chezmoi.vim",
47	{
48		"MeanderingProgrammer/render-markdown.nvim",
49		dependencies = { "nvim-treesitter/nvim-treesitter" },
50		opts = {
51			code = {
52				sign = false,
53				width = "block",
54				right_pad = 1,
55			},
56			heading = {
57				sign = false,
58				icons = {},
59			},
60		},
61		ft = { "markdown", "norg", "rmd", "org" },
62	},
63}