aboutsummaryrefslogtreecommitdiff
path: root/lua/treesitterconf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/treesitterconf.lua')
-rw-r--r--lua/treesitterconf.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/lua/treesitterconf.lua b/lua/treesitterconf.lua
new file mode 100644
index 0000000..ae491bb
--- /dev/null
+++ b/lua/treesitterconf.lua
@@ -0,0 +1,18 @@
+local present, ts_config = pcall(require, "nvim-treesitter.configs")
+if not present then
+ return
+end
+
+ts_config.setup {
+ ensure_installed = {
+ "python",
+ "lua",
+ "nix",
+ },
+ highlight = {
+ enable = true,
+ },
+ indent = {
+ enable = true,
+ }
+}