fix(nvim): no longer save folds
This caused all files to open as fully folded
This commit is contained in:
parent
55674ef60e
commit
6386d8fd93
@ -12,20 +12,6 @@ M.setup = function()
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
command = "%s/\\s\\+$//e",
|
||||
})
|
||||
|
||||
-- NOTE: Remember folds
|
||||
vim.api.nvim_create_augroup("SaveFolds", { clear = true })
|
||||
vim.api.nvim_create_autocmd("BufWinLeave", {
|
||||
pattern = "*.*",
|
||||
command = "mkview",
|
||||
group = "SaveFolds"
|
||||
})
|
||||
vim.api.nvim_create_autocmd("BufWinEnter", {
|
||||
pattern = "*.*",
|
||||
command = "silent! loadview",
|
||||
group = "SaveFolds"
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
return M
|
||||
|
Loading…
x
Reference in New Issue
Block a user