From 28835a6029ca40207c369fa2374fe0ebfb6b9b42 Mon Sep 17 00:00:00 2001 From: Nanderty Date: Tue, 19 Mar 2024 23:34:44 +0100 Subject: config cleanup --- lua/plugins/treesitter.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lua/plugins/treesitter.lua') diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 845ba05..b24df01 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,6 +1,7 @@ return { { 'nvim-treesitter/nvim-treesitter', + main = 'nvim-treesitter.configs', build = ':TSUpdate', event = { 'BufReadPost', @@ -11,7 +12,7 @@ return { ignore_install = { 'latex' }, highlight = { enable = true, - additional_vim_regex_highlighting = { 'latex' }, + additional_vim_regex_highlighting = { 'tex' }, }, indent = { enable = true, disable = { 'python' } }, ensure_installed = { @@ -25,9 +26,6 @@ return { 'css', }, }, - config = function(_, opts) - require('nvim-treesitter.configs').setup(opts) - end, }, { 'luckasRanarison/tree-sitter-hyprlang', -- cgit v1.2.3