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: completion for TODO items #711

Merged
merged 2 commits into from
Jan 12, 2023

Conversation

HendrikPetertje
Copy link
Contributor

Added the "(" as a trigger character, prevent ( from spawning a ) with the updated regex and updated the completion table.

I'm not super familiar with the new syntax yet.. or the syntax in general; so I'll probably end up reading up on the documentation to see what other completions can be disregarded and what completions should be added. But I'll do that in a future pull request.

Added the "(" as a trigger character, prevent ( from spawning a ) with
the updated regex and updated the completion table.

I'm not super familiar with the new syntax yet.. or the syntax in
general; so I'll probably end up reading up on the documentation to see
what other completions can be disregarded and what completions should be
added. But I'll do that in a future pull request.
Copy link
Contributor Author

@HendrikPetertje HendrikPetertje left a comment

Choose a reason for hiding this comment

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

thoughts from self

@@ -86,7 +86,7 @@ module.public = {
end

function module.private.source:get_trigger_characters()
return { "@", "-", "[", " ", "." }
return { "@", "-", "[", "(", " ", "." }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before I would recommend merging this:
Can i safely remove [ as a trigger character for completion start?

Copy link
Member

Choose a reason for hiding this comment

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

yeah, there are no other constructs where [ is required as a trigger character in norg. You can safely remove it imo :)

@vhyrro
Copy link
Member

vhyrro commented Jan 12, 2023

Thanks a bunch for this!

@vhyrro vhyrro changed the title Fix TODO completion fix: completion for TODO items Jan 12, 2023
@vhyrro vhyrro merged commit 9184027 into nvim-neorg:main Jan 12, 2023
@HendrikPetertje HendrikPetertje deleted the fix-todo-completion branch January 13, 2023 09:02
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