about summary refs log tree commit diff
path: root/fnl/nvrc/packs/treesitter.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/nvrc/packs/treesitter.fnl')
-rw-r--r--fnl/nvrc/packs/treesitter.fnl22
1 files changed, 16 insertions, 6 deletions
diff --git a/fnl/nvrc/packs/treesitter.fnl b/fnl/nvrc/packs/treesitter.fnl
index d43f97a..befcbc9 100644
--- a/fnl/nvrc/packs/treesitter.fnl
+++ b/fnl/nvrc/packs/treesitter.fnl
@@ -4,17 +4,27 @@
 
 (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 :<localleader>rn}}
+                                  :keymaps {:smart_rename :grr}}
                    :navigation {:enable true
-                                :keymaps {:goto_definition :<localleader>gd
-                                          :list_definitions :<localleader>ld
-                                          :list_definitions_toc :<localleader>td
-                                          :goto_next_usage :<a-*>
-                                          :goto_previous_usage "<a-#>"}}}
+                                :keymaps {:goto_definition :gnd
+                                          :list_definitions :gnD
+                                          :goto_next_usage :<M-2>
+                                          :goto_previous_usage :<M-1>}}}
         :textobjects {:select {:enable true
                                :lookahead true
                                :keymaps {:if "@function.inner"