nvim: Add nvim-treesitter

Drop the syntax highlight plugins for the languages for which treesitter
is now enabled.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-09-09 17:02:09 +05:30
parent 9358922742
commit af410754a4
3 changed files with 9 additions and 8 deletions

View file

@ -73,8 +73,8 @@ Plug 'neovimhaskell/haskell-vim'
Plug 'Twinside/vim-hoogle', { 'for': 'haskell' }
Plug 'godlygeek/tabular', { 'for': 'haskell' }
Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }
" Rust
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
" For C, Lua and Rust
Plug 'nvim-treesitter/nvim-treesitter'
" Purescript
Plug 'purescript-contrib/purescript-vim'
" Erlang
@ -82,17 +82,11 @@ Plug 'vim-erlang/vim-erlang-runtime', { 'for': 'erlang' }
Plug 'vim-erlang/vim-erlang-tags', { 'for': 'erlang' }
Plug 'vim-erlang/vim-erlang-omnicomplete', { 'for': 'erlang' }
Plug 'vim-erlang/vim-erlang-compiler', { 'for': 'erlang' }
" C/C++
Plug 'vim-jp/vim-cpp'
Plug 'octol/vim-cpp-enhanced-highlight'
Plug 'FromtonRouge/OmniCppComplete'
" LaTeX
Plug 'lervag/vimtex'
" Dhall & nix
Plug 'vmchale/dhall-vim'
Plug 'LnL7/vim-nix'
" Lua
Plug 'wsdjeg/vim-lua'
" Other syntax highlighting support
Plug 'georgewitteman/vim-fish'
Plug 'elzr/vim-json'

View file

@ -0,0 +1,6 @@
require'nvim-treesitter.configs'.setup {
ensure_installed = { "c", "cpp", "lua", "rust" },
highlight = {
enable = true,
},
}

View file

@ -101,3 +101,4 @@ let g:completion_chain_complete_list = {
\}
lua require 'lsp'
lua require 'treesitter'