From fe0e677564995c25119beb8238234c24ef6e592c Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 1 Sep 2024 02:00:46 +0200 Subject: refactored the entire config --- lua/plugins/treesitter.lua | 20 ++++++++++++++++++++ 1 file changed, 20 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..9673f63 --- /dev/null +++ b/lua/plugins/treesitter.lua @@ -0,0 +1,20 @@ +return { + -- treesitter is experimental and breaks indentation on xml, html with `=` + -- treesitter is optional for orgmode, but without it syntax highlighting in + -- org files is broken + 'nvim-treesitter/nvim-treesitter', + config = function() + require'nvim-treesitter.configs'.setup { + ensure_installed = {"c", "html", "css", "javascript", "org"}, + sync_install = false, + auto_install = true, + ignore_install = {}, + disable = { }, + modules = { "all" }, + highlight = { + enable = true, + } + } + end +} + -- cgit v1.2.3