mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
fixed the folds in python
This commit is contained in:
parent
64c5e552c3
commit
c623fbac71
1 changed files with 11 additions and 0 deletions
|
@ -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"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue