From 7111388965e01e9c712dfc2288028952fe78b664 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Mon, 20 Mar 2023 16:29:49 +0100 Subject: lazyvim --- lua/plugins/treesitter.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lua/plugins/treesitter.lua (limited to 'lua/plugins/treesitter.lua') diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua new file mode 100644 index 0000000..6f2fa4e --- /dev/null +++ b/lua/plugins/treesitter.lua @@ -0,0 +1,26 @@ +return { + { + 'nvim-treesitter/nvim-treesitter', + build = ":TSUpdate", + event = { "BufReadPost", "BufNewFile" }, + opts = { + auto_install = true, + ignore_install = { 'latex' }, + highlight = { enable = true }, + indent = { enable = true, disable = { "python" } }, + ensure_installed = { + 'javascript', + 'python', + 'cpp', + 'c', + 'lua', + 'php', + 'html', + 'css', + }, + }, + config = function(_, opts) + require("nvim-treesitter.configs").setup(opts) + end, + } +} -- cgit v1.2.3