aboutsummaryrefslogtreecommitdiff
path: root/fnl/nvrc/packs/treesitter.fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-02-16 08:54:25 +0900
committersefidel <contact@sefidel.net>2022-02-16 17:16:41 +0900
commit2fb74089d3515077395299bce9df32e9e989a8ac (patch)
treeb7e8064cff1c687a11788ab96f96cbcf6d3c88fa /fnl/nvrc/packs/treesitter.fnl
parent6b4cacae7b9c435666c2ec399261f6504336bdce (diff)
downloadnvimrc-2fb74089d3515077395299bce9df32e9e989a8ac.zip
rel: v0.1
- Disable lazy-loading plugins - Add more useful plugins - Fix bar from loading slowly - Add support for neomutt - Change keybinds - Add Editorconfig
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"