projects
/
vimconf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
54e19f5
)
plugins: Add vim-treesitter
author
Stefan Huber <shuber@sthu.org>
Fri, 17 Dec 2021 20:59:31 +0000
(21:59 +0100)
committer
Stefan Huber <shuber@sthu.org>
Fri, 17 Dec 2021 20:59:31 +0000
(21:59 +0100)
init.vim
patch
|
blob
|
history
plugins.vim
patch
|
blob
|
history
diff --git
a/init.vim
b/init.vim
index 86f93b3da6befc9866c02fbf7e6f6bb0299d5f6b..fbdb9aaa1107c67ff63c88cd5986d43dc1d234fd 100644
(file)
--- a/
init.vim
+++ b/
init.vim
@@
-308,6
+308,28
@@
let s:normal_mode_mappings = [
let g:termdebug_wide = 1
let termdebugger = $HOME . '/.vim/gdb.sh'
let g:termdebug_wide = 1
let termdebugger = $HOME . '/.vim/gdb.sh'
+if has('nvim-0.5')
+lua <<EOF
+ require'nvim-treesitter.configs'.setup {
+ -- one of "all", "maintained" (parsers with maintainers), or a list of languages
+ ensure_installed = "maintained",
+ -- List of parsers to ignore installing
+ ignore_install = { },
+ -- Modules and its options go here
+ highlight = {
+ enable = true,
+ disabled = {}
+ },
+ incremental_selection = {
+ enable = true
+ },
+ textobjects = {
+ enable = true
+ }
+ }
+EOF
+endif
+
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
runtime keymaps.vim
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
runtime keymaps.vim
diff --git
a/plugins.vim
b/plugins.vim
index 4c821d42a444e5e259ab7dd68f605bf628027192..578f3538acd920023995f2d952375c96347ad826 100644
(file)
--- a/
plugins.vim
+++ b/
plugins.vim
@@
-98,6
+98,10
@@
Plug 'sjl/splice.vim', {'on': 'SpliceInit'}
Plug 'sheerun/vim-polyglot'
Plug 'sheerun/vim-polyglot'
+if has('nvim-0.5')
+ Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
+endif
+
if filereadable($HOME . '/.vim/plugins-local.vim')
source ~/.vim/plugins-local.vim
endif
if filereadable($HOME . '/.vim/plugins-local.vim')
source ~/.vim/plugins-local.vim
endif