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

fix: don't suggest leading chars for file completions #1574

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

benlubas
Copy link
Contributor

@benlubas benlubas commented Sep 8, 2024

This caused problems with completion engines that didn't do extra work. As a result, completion worked fine with cmp, but caused extra chars to be completed for other engines like builtin, and now care.nvim. (probably mini-completion too but I've never tested).

Now it works with all of them!

:map(function(x)
return leading_whitespace .. x.title .. closing_chars
end)
:totable()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and since we're supporting 0.10+ now, I've dropped the soon to be deprecated tbl_map.

@vhyrro vhyrro merged commit ba35900 into nvim-neorg:main Sep 8, 2024
4 of 6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants