rust: use treesitter for folding
Works well now, but folds are occasially lost- upstream neovim issue 14977
- Id
- 38bf4b7bd560e97d2f296169b05a13fd71ba0016
- Author
- Caio
- Commit time
- 2022-03-13T09:30:09+01:00
Created config/nvim/ftplugin/rust.vim
+" fold via treesitter but start with everthing expanded
+set nofoldenable
+set foldmethod=expr
+set foldexpr=nvim_treesitter#foldexpr()