summaryrefslogtreecommitdiff
path: root/lua/talha/plugins/treesitter.lua
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2025-12-06 15:08:59 +0500
committertalha <talha@talhaamir.xyz>2025-12-06 15:08:59 +0500
commit75b48fc3247b412bb1580c47e96022cffdc8ba9a (patch)
tree20f615aae971834ebc1490b41cecdc3d0e9c4a7d /lua/talha/plugins/treesitter.lua
parent26161cefcda38711c7c8e166ccca7478bcaf18f4 (diff)
Updated config structureHEADmain
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
+ }
+}