diff options
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))} |