summary refs log tree commit diff
path: root/.vim/lua/plugins/_treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to '.vim/lua/plugins/_treesitter.lua')
-rw-r--r--.vim/lua/plugins/_treesitter.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/.vim/lua/plugins/_treesitter.lua b/.vim/lua/plugins/_treesitter.lua
new file mode 100644
index 0000000..ef24286
--- /dev/null
+++ b/.vim/lua/plugins/_treesitter.lua
@@ -0,0 +1,24 @@
+
+require('nvim-treesitter.configs').setup {
+	ensure_installed = { "c", "c_sharp", "javascript", "lua", "bash" },
+	highlight = {
+		enable = false,
+	},
+	indent = {
+		enable = true,
+	},
+	refactor = {
+		navigation = {
+			enable = true,
+			keymaps = {
+				goto_definition = "<c-]>",
+			},
+		},
+		smart_rename = {
+			enable = true,
+			keymaps = {
+				smart_rename = "grr",
+			},
+		},
+	},
+}