1
0
Fork 0
dotfiles/config/nvim/plugins/treesitter.fnl

55 lines
2.4 KiB
Text
Raw Normal View History

2022-04-05 19:57:44 +00:00
(let [treesitter (require :nvim-treesitter)
treesitter-config (require :nvim-treesitter.configs)
treesitter-parsers (require :nvim-treesitter.parsers)
2022-05-31 13:46:32 +00:00
nifoc-treesitter (require :nifoc.treesitter)
install-parsers [:bash
:comment
:css
:dockerfile
:elixir
:erlang
:fennel
:fish
:heex
:html
:http
:javascript
:jsdoc
:json
:lua
:make
2022-06-07 12:09:31 +00:00
:markdown
:nix
:query
:regex
:ruby
:scss
:svelte
:toml
:tsx
:typescript
:vim
:yaml]
2022-04-05 19:57:44 +00:00
rainbow-parsers [:fennel]]
2022-05-31 13:46:32 +00:00
(nifoc-treesitter.setup)
2022-06-05 20:51:01 +00:00
(treesitter-config.setup {:ensure_installed []
:sync_install true
2022-04-05 19:57:44 +00:00
:highlight {:enable true}
:indent {:enable true}
:textobjects {:select {:enable true
:keymaps {:af "@function.outer"
:if "@function.inner"
:ac "@conditional.outer"
:ic "@conditional.inner"}}}
:rainbow {:enable true
:disable (vim.tbl_filter (fn [parser]
(not (vim.tbl_contains rainbow-parsers
parser)))
install-parsers)}
2022-04-05 19:57:44 +00:00
:matchup {:enable true}
:autopairs {:enable true}
:autotag {:enable true}
:playground {:enable true}
:nifoc_hooks {:enable true}}))
2022-05-01 19:52:10 +00:00