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 'Twinside/vim-hoogle', { 'for': 'haskell' }
|
||||||
Plug 'godlygeek/tabular', { 'for': 'haskell' }
|
Plug 'godlygeek/tabular', { 'for': 'haskell' }
|
||||||
Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }
|
Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }
|
||||||
" Rust
|
" For C, Lua and Rust
|
||||||
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
|
Plug 'nvim-treesitter/nvim-treesitter'
|
||||||
" Purescript
|
" Purescript
|
||||||
Plug 'purescript-contrib/purescript-vim'
|
Plug 'purescript-contrib/purescript-vim'
|
||||||
" Erlang
|
" 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-tags', { 'for': 'erlang' }
|
||||||
Plug 'vim-erlang/vim-erlang-omnicomplete', { 'for': 'erlang' }
|
Plug 'vim-erlang/vim-erlang-omnicomplete', { 'for': 'erlang' }
|
||||||
Plug 'vim-erlang/vim-erlang-compiler', { '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
|
" LaTeX
|
||||||
Plug 'lervag/vimtex'
|
Plug 'lervag/vimtex'
|
||||||
" Dhall & nix
|
" Dhall & nix
|
||||||
Plug 'vmchale/dhall-vim'
|
Plug 'vmchale/dhall-vim'
|
||||||
Plug 'LnL7/vim-nix'
|
Plug 'LnL7/vim-nix'
|
||||||
" Lua
|
|
||||||
Plug 'wsdjeg/vim-lua'
|
|
||||||
" Other syntax highlighting support
|
" Other syntax highlighting support
|
||||||
Plug 'georgewitteman/vim-fish'
|
Plug 'georgewitteman/vim-fish'
|
||||||
Plug 'elzr/vim-json'
|
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 'lsp'
|
||||||
|
lua require 'treesitter'
|
||||||
|
|
Loading…
Reference in a new issue