From 72d448e384249103748ee83b587c45924e4bc44d Mon Sep 17 00:00:00 2001 From: sefidel Date: Thu, 10 Feb 2022 00:24:03 +0900 Subject: Initial commit --- fnl/nvrc/packs/treesitter.fnl | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 fnl/nvrc/packs/treesitter.fnl (limited to 'fnl/nvrc/packs/treesitter.fnl') 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 :rn}} + :navigation {:enable true + :keymaps {:goto_definition :gd + :list_definitions :ld + :list_definitions_toc :td + :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}}) -- cgit 1.4.1