Something went wrong. Try again.
My most minimal NixOS configuration.
Something went wrong. Try again.
365 B · 8 lines
Lua
at main
123456789local autocmd = vim.api.nvim_create_autocmd -- Create autocmmand
-- compile latex files on writeautocmd('BufWritePost', { pattern = '*.tex', command = 'silent! execute "!latexmk -f -pdf %" | redraw!' })
-- load and make folds-- autocmd( 'BufLeave' , { pattern = '*.*', command = 'mkview' } )-- autocmd( 'BufEnter' , { pattern = '*.*', command = 'loadview' } )