Nvim-treesitter install
From wikinotes
PreRequisites
pacaur -S neovim-nightly-bin # NOTE: requires neovim-nightly! pacman -S tree-sitter \ tar \ curl
Plugin
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Language Parsers
- confirm language is supported on github then
:TSInstallInfo " show available/installed parsers :TSInstall python " install parser :TSUpdate " update all parsers# provision parser installs outside of vim: nvim -c ':TSInstallSync! python' -c ':quit'
Parser Modules
After installing a parser, you gain aceess to various features like syntax-highlighting, indentation, folding, etc.
These are disabled by default.
Enable them in yourinit.vim
:TSBufEnable python :TSEnableAll python