1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-10 11:31:16 +02:00

nvim: added clearing of preview files for markdown

This commit is contained in:
2023-12-06 01:05:15 +01:00
parent 2f74fa5c04
commit e8a7b8d896
2 changed files with 19 additions and 1 deletions

View File

@@ -1,8 +1,13 @@
vim.api.nvim_create_autocmd({ 'BufEnter', 'FileType' },
vim.api.nvim_create_autocmd({ 'BufEnter' },
{
callback = function() vim.o.foldenable = false end
})
vim.api.nvim_create_autocmd({ 'VimLeave' },
{
callback = function() os.execute('mdclear ' .. vim.fn.expand('%')) end
})
vim.o.shiftwidth = 2
vim.o.softtabstop = 2
vim.o.textwidth = 100