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

When a file doesn't have a filetype, closer#enable is not called #36

Open
toniz4 opened this issue Mar 29, 2021 · 0 comments
Open

When a file doesn't have a filetype, closer#enable is not called #36

toniz4 opened this issue Mar 29, 2021 · 0 comments

Comments

@toniz4
Copy link
Contributor

toniz4 commented Mar 29, 2021

When a file with no file type (when not opening a file with no supported syntax, or not opening a file) closer#enable is not called. That makes it don't make the <CR> bind, in the case that g:closer_no_mappings is unset, or when it is set, binds that use <Plug>CloserClose will be treated as a string and will be printed to the file.

This will be solved by just calling closer#enable at plugin/closer.vim, instead of just making a autocmd for all filetypes.

Sorry for spamming issues, i just really liked this plugin and happened to found some little bugs. Thanks!

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

1 participant