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

bug: frequently getting error when using care w/ dressing.nvim #145

Open
2 tasks done
mj59487 opened this issue Dec 6, 2024 · 3 comments
Open
2 tasks done

bug: frequently getting error when using care w/ dressing.nvim #145

mj59487 opened this issue Dec 6, 2024 · 3 comments

Comments

@mj59487
Copy link

mj59487 commented Dec 6, 2024

Prerequisites

  • I am using the latest stable or nightly neovim version
  • I am using the latest version of the plugin

Neovim Version

NVIM v0.11.0-dev-1295+gbf5c1346c5

Actual behavior

image

Greetings max.
I am frequently getting this error while trying to add a file within nvim-tree using dressing.nvim. Apparently, the source of this problem is care.nvim, (I haven't found this problem with any other completion plugins). I reinstalled care only to find the same error to occur again. Im not sure what could be the source of this bug but, care seems to be showing completion even for dressing.nvim windows. (completion plugins like nvim-cmp do not do this).
image

Expected behavior

The error should be resolved.

Healthcheck

==============================================================================
care:                                           require("care.health").check()

care.nvim ~
- Checking configuration...
- Format entry function:
- Format entry function returns correct value
- Alignments:
- All alignments are correct
- 
- Checking dependencies...
- Dependency 'fzy' found

Other information

No response

@mj59487
Copy link
Author

mj59487 commented Dec 6, 2024

note: I can confirm this issue only occurs this care.nvim by removing care.nvim and testing it to see if it occurs within nvim-cmp or no completion plugin at all.

@max397574
Copy link
Owner

this is because of care-cmp
which makes require"cmp" return something
so dressing assumes that cmp is available and tries to call setup

not sure what's the best way to fix this

either I'd have to add more dummy function to not make this error or dressing should just e.g. use a pcall

@mj59487
Copy link
Author

mj59487 commented Dec 7, 2024

greetings max.

what do you reckon on what i should do? could there be a temporal fix? Thanks for your response.

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

2 participants