Nvim plug: nvim-ufo
From wikinotes
A plugin for neovim that allows syntaxhighlighting within folds.
NOTE:
this does not appear to respect my custom fold treesitter-queries
Documentation
github https://github.com/kevinhwang91/nvim-ufo
Troubleshooting
Code keeps folding on save or exiting insert mode
TL;DR return for that language's provider-selector. See https://github.com/kevinhwang91/nvim-ufo/issues/30
-- return '' for python local ftMap = { python = '' } require('ufo').setup({ provider_selector = function(bufnr, filetype) return ftMap[filetype] end })