diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-08 14:24:05 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-08 14:24:05 +0100 |
commit | 68719ee058a302a4bda697b6a39ebfd5fefb06fc (patch) | |
tree | 055165e0b3edeeb2ea36da6e2eee9e851ca7cc0b /fnl/config/treesitter.fnl | |
parent | 86fc163e549d78136855ac2b45e91ffb2f43affc (diff) |
Refactor loading of plugins
Diffstat (limited to 'fnl/config/treesitter.fnl')
-rw-r--r-- | fnl/config/treesitter.fnl | 9 |
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))} |