fixed the folds in python

This commit is contained in:
JesseBot 2025-05-12 19:26:30 +02:00
parent 64c5e552c3
commit c623fbac71
No known key found for this signature in database

View file

@ -96,6 +96,17 @@ autocmd({"BufEnter", "BufWinEnter"}, {
end,
})
-- set the filetype for literally everything else
vim.api.nvim_create_autocmd("BufEnter", {
callback = function()
if vim.opt.foldmethod:get() == "expr" then
vim.schedule(function()
vim.opt.foldmethod = "expr"
end)
end
end,
})
-- set TXT (text files) to filetype markdown
autocmd({"BufEnter", "BufWinEnter"}, {
pattern = {"*.txt"},