Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work well with set nohidden #58

Open
skanev opened this issue Nov 17, 2022 · 0 comments
Open

Does not work well with set nohidden #58

skanev opened this issue Nov 17, 2022 · 0 comments

Comments

@skanev
Copy link

skanev commented Nov 17, 2022

First of all, great plugin, I really love nvim-cmp.

So, I tried to enable completion for multiple buffers with:

get_bufnrs = function() return vim.api.nvim_list_bufs() end

Didn't work. Or rather, was weirdly buggy and sometimes worked, sometimes didn't. Long story short, the mechanism for indexing files doesn't work unless set hidden is set. I spent a few hours debugging until I figured out why the source get buffers with no words in them.

I appreciate that making it work for set nohidden will add a lot of complexity, and that maybe set hidden is a better default. May I suggest it's at least added to the README that is required for the plugin to function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant