summaryrefslogtreecommitdiff
path: root/lua/talha/plugins/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/talha/plugins/treesitter.lua')
-rw-r--r--lua/talha/plugins/treesitter.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/talha/plugins/treesitter.lua b/lua/talha/plugins/treesitter.lua
new file mode 100644
index 0000000..3f1efc7
--- /dev/null
+++ b/lua/talha/plugins/treesitter.lua
@@ -0,0 +1,21 @@
+return {
+ {
+ "nvim-treesitter/nvim-treesitter",build = ":TSUpdate",
+ config = function ()
+ local configs = require("nvim-treesitter.configs")
+
+ configs.setup({
+ ensure_installed = {
+ "c", "cpp", "python",
+ "vim", "vimdoc", "query",
+ },
+ sync_install = false,
+ highlight = {
+ enable = true,
+ additional_vim_regex_highlighting = false,
+ },
+ indent = { enable = false },
+ })
+ end
+ }
+}