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

Set filetype to make it easier to exit the cheatsheet window by pressing q. #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sebastiandevops
Copy link

After updating init.lua you should be able to add the mapping via an autocmd now like autocmd FileType cheat command = "nnoremap q :bdelete!" to close floating window by pressing just q

…autocmd now like autocmd FileType cheat command = "nnoremap <buffer><silent> q :bdelete!<CR>" to close floating window by pressing just q
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.

1 participant