use tree-sitter w/neovim

pull/2/head
Alpha Chen 3 years ago
parent 97dd6a44ac
commit 7f19c3bde1

3
.gitmodules vendored

@ -177,3 +177,6 @@
[submodule ".local/share/nvim/site/pack/kejadlen/start/lint"]
path = .local/share/nvim/site/pack/kejadlen/start/lint
url = https://github.com/mfussenegger/nvim-lint.git
[submodule ".local/share/nvim/site/pack/kejadlen/start/treesitter"]
path = .local/share/nvim/site/pack/kejadlen/start/treesitter
url = https://github.com/nvim-treesitter/nvim-treesitter.git

@ -0,0 +1 @@
Subproject commit c2f76ae970924b83ac803d2076b3d9ad33161836

@ -103,6 +103,17 @@
; https://github.com/tpope/vim-vinegar/issues/13
(set vim.g.netrw_home "~/.nvim_tmp")
;;; tree-sitter
(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}}))
(set vim.opt.foldmethod :expr)
(set vim.opt.foldexpr "nvim_treesitter#foldexpr()")
;;; generate help files
; Load all plugins now.

Loading…
Cancel
Save