summaryrefslogtreecommitdiff
path: root/fnl/config/treesitter.fnl
blob: 18d8f22d443d20e98fe9cae243c521de2c23f662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;; 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 [treesitter (util.load-plugin :nvim-treesitter.config)]
  (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 }}))