(local {: setup} (require :nvim-treesitter.configs)) (local colors (require :nvrc.colors)) (setup {:ensure_installed [:fennel :lua :nix] :highlight {:enable true} :context_commentstring {:enable true :config {:fennel "; %s"}} :rainbow {:enable true :extended_mode true :max_file_lines 2000 :disable ["c" "cpp"] :colors [ (. colors :skyblue) (. colors :blue) (. colors :violet) (. colors :magenta)]} :indent {:enable true} :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 {:if "@function.inner" :af "@function.outer" :ic "@class.inner" :ac "@class.outer" :ia "@parameter.inner" :aa "@parameter.outer"}} :swap {:enable true :swap_next {:> "@parameter.inner"} :swap_previous {:< "@parameter.inner"}}} :matchup {:enable true}})