summaryrefslogtreecommitdiffstats
path: root/after/plugin/ts.lua
diff options
context:
space:
mode:
Diffstat (limited to 'after/plugin/ts.lua')
-rw-r--r--after/plugin/ts.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/after/plugin/ts.lua b/after/plugin/ts.lua
new file mode 100644
index 0000000..7e5a490
--- /dev/null
+++ b/after/plugin/ts.lua
@@ -0,0 +1,27 @@
+local status_ok, treesitter = pcall(require, "nvim-treesitter.configs")
+if not status_ok then
+ return
+end
+
+treesitter.setup {
+ ensure_installed = {
+ "c",
+ "lua",
+ "bash",
+ "vim",
+ "vimdoc",
+ "query",
+ "git_rebase",
+ "gitattributes",
+ "gitcommit",
+ "gitignore",
+ "git_config",
+ },
+
+ auto_install = true,
+
+ highlight = {
+ enable = true,
+ additional_vim_regex_highlighting = false,
+ },
+}