1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-03-28 10:24:47 +01:00
Files
dotfiles/.config/nvim/after/ftplugin/markdown.lua

16 lines
305 B
Lua

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