mirror of https://github.com/tiyn/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
545 B
21 lines
545 B
return {
|
|
-- folding improvements
|
|
{
|
|
'kevinhwang91/nvim-ufo',
|
|
dependencies = { 'kevinhwang91/promise-async' },
|
|
config = function()
|
|
require('ufo').setup()
|
|
vim.api.nvim_create_autocmd({ 'BufEnter', 'FileType' },
|
|
{
|
|
pattern = { '*' },
|
|
callback = function() require("ufo").closeAllFolds() end
|
|
})
|
|
vim.api.nvim_create_autocmd({ 'BufEnter', 'FileType' },
|
|
{
|
|
pattern = { '*' },
|
|
callback = function() require("ufo").openAllFolds() end
|
|
})
|
|
end
|
|
}
|
|
}
|