enable incremental selection in neovim

pull/2/head
Alpha Chen 2 years ago
parent 4a9aa9adca
commit f279a288a5

@ -104,13 +104,17 @@
(set vim.g.netrw_home "~/.nvim_tmp") (set vim.g.netrw_home "~/.nvim_tmp")
;;; treesitter ;;; treesitter
(let [configs (require :nvim-treesitter.configs) (let [configs (require :nvim-treesitter.configs)
{: setup} configs] {: setup} configs]
(setup {:ensure_installed [:fennel] (setup {:ensure_installed [:fennel]
:sync_install false :sync_install false
:highlight {:enable true :additional_vim_regex_highlighting false} :highlight {:enable true :additional_vim_regex_highlighting false}
:indent {:enable true}})) :indent {:enable true}
:incremental_selection {:enable true
:keymaps {:init_selection :gnn
:node_incremental :grn
:scope_incremental :grc
:node_decremental :grm}}}))
(set vim.opt.foldmethod :expr) (set vim.opt.foldmethod :expr)
(set vim.opt.foldexpr "nvim_treesitter#foldexpr()") (set vim.opt.foldexpr "nvim_treesitter#foldexpr()")

Loading…
Cancel
Save