From 2d3d838cd3147ec3412e5b01051b5d5cf891ed88 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Sun, 2 Apr 2023 21:02:01 +0200 Subject: Konfiguration für Treesitter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/plugins.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'nvim/plugins.vim') diff --git a/nvim/plugins.vim b/nvim/plugins.vim index 4c0d9a0..1386eca 100644 --- a/nvim/plugins.vim +++ b/nvim/plugins.vim @@ -16,6 +16,7 @@ call plug#begin() Plug 'simnalamburt/vim-mundo' Plug 'tpope/vim-repeat' Plug 'tpope/vim-surround' + Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} call plug#end() " EMMET @@ -48,3 +49,19 @@ let g:mundo_preview_height=30 " Autopairs let b:autopairs_enabled=1 +" Treesitter +lua << EOF +require'nvim-treesitter.configs'.setup { + ensure_installed = { "c", "lua", "vim", "vimdoc", "typescript" }, + sync_install = false, + auto_install = false, + highlight = { + enable = true, + disable = { "html" }, + additional_vim_regex_highlighting = true, + }, + indent = { + enable = false, + }, +} +EOF -- cgit v1.3