enable incremental selection in neovim

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

@ -104,13 +104,17 @@
(set vim.g.netrw_home "~/.nvim_tmp")
;;; treesitter
(let [configs (require :nvim-treesitter.configs)
{: setup} configs]
(setup {:ensure_installed [:fennel]
:sync_install 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.foldexpr "nvim_treesitter#foldexpr()")

Loading…
Cancel
Save