add nvim treesitter

This commit is contained in:
Jidbo 2021-09-05 21:42:53 +02:00
parent 906acb2658
commit d9f1170230
Signed by untrusted user: jidbo
GPG key ID: 54C320BF0E44C5CA
3 changed files with 25 additions and 8 deletions

View file

@ -101,7 +101,7 @@ let g:goyo_linenr = 0
lua require'lspconfig'.tsserver.setup{ on_attach=require'completion'.on_attach }
lua require'lspconfig'.intelephense.setup{ on_attach=require'completion'.on_attach }
lua require'lspconfig'.vuels.setup{ on_attach=require'completion'.on_attach }
lua require'lspconfig'.pyls.setup{ on_attach=require'completion'.on_attach }
lua require'lspconfig'.pylsp.setup{ on_attach=require'completion'.on_attach }
lua require'lspconfig'.texlab.setup{ on_attach=require'completion'.on_attach }
lua <<EOF
lspconfig = require "lspconfig"
@ -130,3 +130,16 @@ let g:user_emmet_leader_key='<C-i>'
" =========================
" autocmd Filetype tex LanguageToolSetUp
let g:languagetool_cmd='/usr/bin/languagetool'
" TREESITTER
" lua <<EOF
" require'nvim-treesitter.configs'.setup {
" ensure_installed = "maintained",
" highlight = {
" enable = true,
" },
" indent = {
" enable = true
" },
" }
" EOF

View file

@ -71,6 +71,10 @@ Plug 'nvim-lua/completion-nvim'
" Autoformatter
Plug 'sbdchd/neoformat'
" treesitter
" Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
" Plug 'nvim-treesitter/playground'
" disable latex before loading
let g:polyglot_disabled = ["latex"]
Plug 'sheerun/vim-polyglot'