summaryrefslogtreecommitdiff
path: root/fnl/config/treesitter.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 14:24:05 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 14:24:05 +0100
commit68719ee058a302a4bda697b6a39ebfd5fefb06fc (patch)
tree055165e0b3edeeb2ea36da6e2eee9e851ca7cc0b /fnl/config/treesitter.fnl
parent86fc163e549d78136855ac2b45e91ffb2f43affc (diff)
Refactor loading of plugins
Diffstat (limited to 'fnl/config/treesitter.fnl')
-rw-r--r--fnl/config/treesitter.fnl9
1 files changed, 7 insertions, 2 deletions
diff --git a/fnl/config/treesitter.fnl b/fnl/config/treesitter.fnl
index a8918d2..1d96a13 100644
--- a/fnl/config/treesitter.fnl
+++ b/fnl/config/treesitter.fnl
@@ -28,7 +28,12 @@
:indent {:enable true :disable [:yaml :python :css]}
:playground {:enable true}})
+(fn setup []
+ (let [treesitter (require :nvim-treesitter.configs)]
+ (treesitter.setup opts)))
+
{1 :nvim-treesitter/nvim-treesitter
:build ":TSUpdate"
- :event :BufReadPre
- :config opts}
+ :event :BufReadPost
+ :config (fn []
+ (setup))}