fix: telescope folds

This commit is contained in:
əlemi 2022-10-28 11:25:43 +02:00
parent ea5655bd0b
commit 3f63b45d45
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -142,6 +142,16 @@ local init_fn = function(use)
}
})
require('keybinds'):set_telescope_keys({})
-- for some reason, telescope breaks folds!
-- this should fix (took it off an issue on github)
vim.api.nvim_create_autocmd('BufRead', {
callback = function()
vim.api.nvim_create_autocmd('BufWinEnter', {
once = true,
command = 'normal! zx'
})
end
})
end
}