-- {{ ansible_managed }} --enable this option here as the events are used in this buffer vim.cmd('syntax on') vim.api.nvim_create_autocmd('Syntax', { command = [[:normal zR]], desc = 'Open folds by default', }) vim.api.nvim_create_autocmd('Filetype', { pattern = 'TelescopeResults', command = [[:setlocal nofoldenable]], })