diff options
author | Max Christian Pohle | 2024-09-01 02:00:46 +0200 |
---|---|---|
committer | Max Christian Pohle | 2024-09-01 02:00:46 +0200 |
commit | fe0e677564995c25119beb8238234c24ef6e592c (patch) | |
tree | e33fef58ae6a906ae89382c82ebcb541e3f3a997 /lua/plugins/treesitter.lua | |
parent | 7172c36d4508510ad844fcbea1bd3bc496da809e (diff) | |
download | vim-fe0e677564995c25119beb8238234c24ef6e592c.tar.bz2 vim-fe0e677564995c25119beb8238234c24ef6e592c.zip |
refactored the entire config
Diffstat (limited to 'lua/plugins/treesitter.lua')
-rw-r--r-- | lua/plugins/treesitter.lua | 20 |
1 files changed, 20 insertions, 0 deletions
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 @@ | |||
1 | return { | ||
2 | -- treesitter is experimental and breaks indentation on xml, html with `=` | ||
3 | -- treesitter is optional for orgmode, but without it syntax highlighting in | ||
4 | -- org files is broken | ||
5 | 'nvim-treesitter/nvim-treesitter', | ||
6 | config = function() | ||
7 | require'nvim-treesitter.configs'.setup { | ||
8 | ensure_installed = {"c", "html", "css", "javascript", "org"}, | ||
9 | sync_install = false, | ||
10 | auto_install = true, | ||
11 | ignore_install = {}, | ||
12 | disable = { }, | ||
13 | modules = { "all" }, | ||
14 | highlight = { | ||
15 | enable = true, | ||
16 | } | ||
17 | } | ||
18 | end | ||
19 | } | ||
20 | |||