aboutsummaryrefslogtreecommitdiff
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.fnl29
1 files changed, 29 insertions, 0 deletions
diff --git a/fnl/nvrc/packs/treesitter.fnl b/fnl/nvrc/packs/treesitter.fnl
new file mode 100644
index 0000000..6e02ae5
--- /dev/null
+++ b/fnl/nvrc/packs/treesitter.fnl
@@ -0,0 +1,29 @@
+(local {: setup} (require :nvim-treesitter.configs))
+
+(local colors (require :nvrc.colors))
+
+(setup {:ensure_installed [:fennel :lua]
+ :highlight {:enable true}
+ :indent {:enable true}
+ :refactor {:highlight_definitions {:enable true}
+ :highlight_current_scope {:enable false}
+ :smart_rename {:enable true
+ :keymaps {:smart_rename :<localleader>rn}}
+ :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-#>"}}}
+ :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 {:<localleader>> "@parameter.inner"}
+ :swap_previous {:<localleader>< "@parameter.inner"}}}
+ :matchup {:enable true}})