summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/treesitter.lua')
-rw-r--r--.config/nvim/lua/plugins/treesitter.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua
new file mode 100644
index 0000000..6ac96af
--- /dev/null
+++ b/.config/nvim/lua/plugins/treesitter.lua
@@ -0,0 +1,27 @@
+return {
+ 'nvim-treesitter/nvim-treesitter',
+ name = 'treesitter',
+ build = ':TSUpdate',
+ config = function()
+ require('nvim-treesitter.configs').setup({
+ ensure_installed = {
+ "vimdoc", "c", "lua", "cpp",
+ "bash", "css", "glsl", "nasm", "haskell",
+ "hyprlang", "zig",
+ },
+ sync_install = false,
+
+ auto_install = true,
+
+ indent = {
+ enable = true
+ },
+
+ highlight = {
+ enable = true,
+
+ additional_vim_regex_highlighting = { "markdown" },
+ },
+ })
+ end
+}