development/templates/nvim/lua/auto-commands.lua.j2

14 lines
343 B
Django/Jinja

-- {{ 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]],
})