(local {: setup} (require :nvim-treesitter.configs)) (local colors (require :nvrc.colors)) (setup {:ensure_installed [:fennel :lua :nix] :highlight {:enable true :use_languagetree true} :rainbow {:enable true :extended_mode true :max_file_lines 2000 :disable [:c :cpp] :colors [(. colors :green) (. colors :skyblue) (. colors :blue) (. colors :violet)]} :incremental_selection {:enable true :keymaps {:init_selection :gnn :node_incremental :grn :scope_incremental :grc :node_decremental :grm}} :refactor {:highlight_definitions {:enable true} :highlight_current_scope {:enable false} :smart_rename {:enable true :keymaps {:smart_rename :grr}} :navigation {:enable true :keymaps {:goto_definition :gnd :list_definitions :gnD :goto_next_usage : :goto_previous_usage :}}} :textobjects {:select {:enable true :lookahead true :keymaps {:af "@function.outer" :if "@function.inner" :aC "@class.outer" :iC "@class.inner" :ac "@conditional.outer" :ic "@conditional.inner" :ae "@block.outer" :ie "@block.inner" :al "@loop.outer" :il "@loop.inner" :is "@statement.inner" :as "@statement.outer" :ad "@comment.outer" :am "@call.outer" :im "@call.inner"}} :swap {:enable true :swap_next {: "@parameter.inner" : "@function.outer"} :swap_previous {: "@parameter.inner" : "@function.outer"}} :move {:enable true :set_jumps true :goto_next_start {"]m" "@function.outer" "][" "@class.outer"} :goto_next_end {"]M" "@function.outer" "]]" "@class.outer"} :goto_previous_start {"[m" "@function.outer" "[[" "@class.outer"} :goto_previous_end {"[M" "@function.outer" "[]" "@class.outer"}}} :indent {:enable true}})