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

Error: attempt to compare nil with number in Telescope prompt #6

Closed
bnjmnt4n opened this issue Jun 2, 2023 · 2 comments
Closed

Error: attempt to compare nil with number in Telescope prompt #6

bnjmnt4n opened this issue Jun 2, 2023 · 2 comments

Comments

@bnjmnt4n
Copy link

bnjmnt4n commented Jun 2, 2023

I get the following error when opening the Telescope prompt:

Error detected while processing TextChangedI Autocommands for "*":
Error executing lua callback: .../.local/share/nvim/lazy/spaceless.nvim/lua/spaceless.lua:61: attempt to compare nil with number
stack traceback:
        .../.local/share/nvim/lazy/spaceless.nvim/lua/spaceless.lua:61: in function <.../.local/share/nvim/lazy/spaceless.nvim/lua/spaceless.lua:55>
        ...ocal/share/nvim/lazy/spaceless.nvim/plugin/spaceless.lua:12: in function <...ocal/share/nvim/lazy/spaceless.nvim/plugin/spaceless.lua:11>

Looks like #2/#5 would be a workaround if merged.

@lewis6991
Copy link
Owner

I do not. There must be something else in your config causing this.

@bnjmnt4n
Copy link
Author

bnjmnt4n commented Jun 5, 2023

Sorry for the noise, I will double check my config and see if I'm doing anything unusual. Will update/close the PR after doing so.

Update: I think trying to be too smart with some lazy loading configuration for Telescope. After making some tweaks this is no longer an issue.

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