dots-of-war/nvim/.config/nvim/fnl/dots/plugins/treesitter.fnl
2023-02-25 18:07:21 +01:00

50 lines
1.5 KiB
Fennel

(module dots.plugins.treesitter
{autoload {utils dots.utils
a aniseed.core}
require {configs nvim-treesitter.configs}
require-macros [macros]})
(configs.setup
{:ensure_installed ["rust" "fennel"]
; :ensure_installed "maintained"
:highlight {:enable true
:disable ["fennel" "rust" "haskell"]}
:incremental_selection {:enable false
:keymaps {:init_selection "gss"
:node_incremental "gsl"
:node_decremental "gsh"
:scope_incremental "gsj"
:scope_decremental "gsk"}}
:textsubjects {:enable true
:prev_selection ","
:keymaps {"." "textsubjects-smart"}}
; Might fuck with gitsigns
;:rainbow {:enable true
;:extended_mode true}
:context_commentstring {:enable true :disable ["rust" "fennel"]}
:playground
{:enable true
:disable ["fennel"]
:updatetime 25 ; Debounced time for highlighting nodes in the playground from source code
:persist_queries false ; Whether the query persists across vim sessions
:keybindings
{:toggle_query_editor "o"
:toggle_hl_groups "i"
:toggle_injected_languages "t"
:toggle_anonymous_nodes "a"
:toggle_language_display "I"
:focus_language "f"
:unfocus_language "F"
:update "R"
:goto_node "<cr>"
:show_help "?"}}})
;:indent {:enable true}
;:disable ["lua"]