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)
|
2022-04-09 15:39:52 +00:00
|
|
|
install-parsers [:bash
|
|
|
|
:comment
|
|
|
|
:css
|
|
|
|
:dockerfile
|
|
|
|
:elixir
|
|
|
|
:erlang
|
|
|
|
:fennel
|
|
|
|
:fish
|
|
|
|
:heex
|
|
|
|
:html
|
|
|
|
:http
|
2022-11-21 07:08:56 +00:00
|
|
|
:java
|
2022-04-09 15:39:52 +00:00
|
|
|
:javascript
|
|
|
|
:jsdoc
|
|
|
|
:json
|
|
|
|
:lua
|
|
|
|
:make
|
2022-09-02 20:14:05 +00:00
|
|
|
:markdown
|
|
|
|
:markdown_inline
|
2022-04-09 15:39:52 +00:00
|
|
|
:nix
|
|
|
|
:query
|
|
|
|
:regex
|
|
|
|
:ruby
|
|
|
|
:scss
|
2023-01-18 19:17:59 +00:00
|
|
|
:sql
|
2022-04-09 15:39:52 +00:00
|
|
|
:svelte
|
|
|
|
:toml
|
|
|
|
:tsx
|
|
|
|
:typescript
|
|
|
|
:vim
|
|
|
|
:yaml]
|
2022-11-08 23:24:54 +00:00
|
|
|
rainbow-parsers [:fennel]
|
2022-11-11 14:06:11 +00:00
|
|
|
disable-parsers []]
|
2022-05-31 13:46:32 +00:00
|
|
|
(nifoc-treesitter.setup)
|
2022-06-05 20:51:01 +00:00
|
|
|
(treesitter-config.setup {:ensure_installed []
|
2022-04-09 15:39:52 +00:00
|
|
|
:sync_install true
|
2022-11-08 23:24:54 +00:00
|
|
|
:auto_install false
|
|
|
|
:highlight {:enable true :disable disable-parsers}
|
2022-11-11 14:06:11 +00:00
|
|
|
:indent {:enable true :disable disable-parsers}
|
2022-04-05 19:57:44 +00:00
|
|
|
:textobjects {:select {:enable true
|
2022-11-11 14:06:11 +00:00
|
|
|
:disable disable-parsers
|
2022-04-05 19:57:44 +00:00
|
|
|
: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)))
|
2022-04-09 15:39:52 +00:00
|
|
|
install-parsers)}
|
2022-11-08 23:24:54 +00:00
|
|
|
:matchup {:enable true :disable disable-parsers}
|
2022-11-11 14:06:11 +00:00
|
|
|
:autopairs {:enable true :disable disable-parsers}
|
|
|
|
:autotag {:enable true :disable disable-parsers}
|
2022-04-05 19:57:44 +00:00
|
|
|
:playground {:enable true}
|
2022-11-11 14:06:11 +00:00
|
|
|
:nifoc_hooks {:enable true
|
|
|
|
:disable disable-parsers}}))
|
2022-05-01 19:52:10 +00:00
|
|
|
|