diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-05 22:50:07 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-05 22:50:07 +0200 |
commit | b579081ce4dbabcbaa334057b0a748cf2cf6ddf6 (patch) | |
tree | 8123bd9f25f3745d656d5fd730422a85610b01cd | |
parent | acabd03c5868f66ee857a27eef2835478d38f1d4 (diff) |
feat(treesitter): add fnl config
-rw-r--r-- | fnl/config/treesitter.fnl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/fnl/config/treesitter.fnl b/fnl/config/treesitter.fnl new file mode 100644 index 0000000..cfbf00c --- /dev/null +++ b/fnl/config/treesitter.fnl @@ -0,0 +1,21 @@ +;; Treesitter is a tool for building syntax trees for source files. +;; In the neovim context it helps with better coloring. +(module config.treesitter + {autoload {util util}}) + +(let [(ok? treesitter) util.load-plugin :nvim-treesitter.config] + (when ok? + (treesitter.setup + {:ensure_installed "maintained" + :sync_install false + :ignore_install { "" } + :autopairs { :enable true } + :highlight { + :enable true + :disable [ "org" ] + :additional_vim_regex_highlighting [ "org" ]}} + :context_commentstring { + :enable true + :enable_autocmd false} + :indent { :enable true :disable [ "yaml" "python" "css" ] } + :playground { :enable true }} |