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:
parent
9358922742
commit
af410754a4
3 changed files with 9 additions and 8 deletions
|
@ -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'
|
||||
|
|
6
nvim/.config/nvim/lua/treesitter.lua
Normal file
6
nvim/.config/nvim/lua/treesitter.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = { "c", "cpp", "lua", "rust" },
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
}
|
|
@ -101,3 +101,4 @@ let g:completion_chain_complete_list = {
|
|||
\}
|
||||
|
||||
lua require 'lsp'
|
||||
lua require 'treesitter'
|
||||
|
|
Loading…
Reference in a new issue