nvim: crontabs will now use the correct commentstring

This commit is contained in:
PowerUser64 2022-04-04 16:15:07 -07:00
parent a0cdccfa06
commit 42d95f9470

View file

@ -104,6 +104,10 @@ vim.cmd 'nnoremap Q z='
vim.cmd 'let g:markdown_fenced_languages = [ "bash=sh", "javascript", "cpp=cpp", "c++=cpp", "js=javascript", "json=javascript", "typescript", "ts=typescript", "php", "html", "css", "yml=yaml", "yaml" ]'
--- autocmd's ---
-- Set comment strings
vim.cmd 'autocmd FileType crontab set commentstring=#\\ %s'
-- vim.cmd 'autocmd FileType rmd set commentstring=<!--\\ %s\\ -->'
-- Automatically jump to the last position in a file when opening
vim.cmd [[ au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif ]]