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: only disable autoclose for specific filetypes #916

Merged
merged 2 commits into from
Jul 31, 2023
Merged

Conversation

ayamir
Copy link
Owner

@ayamir ayamir commented Jul 31, 2023

  1. disable autoclose '' for rust because ' is the symbol for lifetimes.
  2. disable autoclose <> for cpp only because << and >> are operators in cpp but <> is often used as generic type.

Signed-off-by: ayamir <lgt986452565@gmail.com>
Copy link
Collaborator

@Jint-lzxy Jint-lzxy left a comment

Choose a reason for hiding this comment

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

LGTM

@Jint-lzxy Jint-lzxy changed the title fix: set autoclose properly for cpp&rust. fix: only disable autoclose for specific filetypes Jul 31, 2023
@ayamir ayamir merged commit 7a01d7a into main Jul 31, 2023
4 checks passed
@ayamir ayamir deleted the fix/autoclose branch July 31, 2023 10:43
singlemancombat pushed a commit to singlemancombat/nvim-config that referenced this pull request Jul 31, 2023
* fix: set autoclose properly for cpp&rust.

Signed-off-by: ayamir <lgt986452565@gmail.com>

* fixup!: clean code.

---------

Signed-off-by: ayamir <lgt986452565@gmail.com>
@fecet
Copy link
Contributor

fecet commented Aug 7, 2023

Dosn't most languages use < and > for comparasion? I guess enable it only for specific filetypes would be better

@ayamir
Copy link
Owner Author

ayamir commented Aug 7, 2023

Dosn't most languages use < and > for comparasion? I guess enable it only for specific filetypes would be better

You're right. But autoclose.nvim doesn't have the option to enable it for the specific file type. I have opened an issue for it here.

@Jint-lzxy
Copy link
Collaborator

You're right. But autoclose.nvim doesn't have the option to enable it for the specific file type. I have opened an issue for it here.

@ayamir IMO we can revert this change atm to avoid regression & repeated issues.

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.

3 participants