Closed devstefancho closed 1 year ago
I don't use nvim-tree
and telescope
, can't help with this issue.
I cannot reproduce it no matter what providers I use. So this is not a bug of nvim-ufo, even not a bug of nvim-tree or telescope.
See the demo below where I have the same config with yours.
@rockyzhang24 Hmm... thanks for sharing demo If you don't mind would you share your config?
Sure, but I am using coc currently whose config is not uploaded to github. I will attach my config for nvim-lsp for your reference, https://github.com/rockyzhang24/dotfiles/tree/master/.config/nvim. The nvim-tree config here is kinda outdated because I haven't used it for a while. Just now when I tried to reproduce your issue, I re-installed nvim-tree and used the config (shown below) grabbed from its readme
require("nvim-tree").setup()
local function open_nvim_tree()
require("nvim-tree.api").tree.open()
end
vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })
Hope this is helpful.
It's stale.
Neovim version (nvim -v | head -n1)
NVIM v0.8.2
Operating system/version
macOS 12.2.1
How to reproduce the issue
https://user-images.githubusercontent.com/61320923/218629737-6c03a987-79f0-47f2-9d30-02605666ac83.mov
My config file commit code
My nvim directory structure
Here is my lua config
init.lua
after/plugin/nvim-ufo.lua
Expected behavior
then open with nvim-tree ( In video,
bufferline.lua
) then open any file with telescope (or just:e init.lua
)then the second opened with enabling fold ( In video,
material.lua
)Actual behavior
then open with nvim-tree then open any file with telescope (or just
:e init.lua
)then file opened but not enabling fold and when opening second file, fold is enabled