From 338818c744c0c9138a519ad01818e69c6c21faae Mon Sep 17 00:00:00 2001 From: Nanderty Date: Tue, 19 Mar 2024 22:21:51 +0100 Subject: Fix treesitter for tex, add whitespace indicator in visual mode --- lua/plugins/interface.lua | 8 ++++++++ lua/plugins/treesitter.lua | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'lua/plugins') diff --git a/lua/plugins/interface.lua b/lua/plugins/interface.lua index 42d0108..3226cb0 100644 --- a/lua/plugins/interface.lua +++ b/lua/plugins/interface.lua @@ -2,6 +2,14 @@ return { { 'nvim-tree/nvim-web-devicons', }, + { + 'mcauley-penney/visual-whitespace.nvim', + event = { + 'BufReadPre', + 'BufNewFile' + }, + config = true + }, { 'nvim-lualine/lualine.nvim', event = 'VeryLazy', diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index fa64a8d..845ba05 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -11,7 +11,7 @@ return { ignore_install = { 'latex' }, highlight = { enable = true, - additional_vim_regex_highlighting = false, + additional_vim_regex_highlighting = { 'latex' }, }, indent = { enable = true, disable = { 'python' } }, ensure_installed = { @@ -26,7 +26,7 @@ return { }, }, config = function(_, opts) - require("nvim-treesitter.configs").setup(opts) + require('nvim-treesitter.configs').setup(opts) end, }, { -- cgit v1.2.3