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

nmap - :CHADopen<cr> causes chadtree to become smaller and smaller #15

Closed
joereynolds opened this issue Aug 3, 2020 · 1 comment
Closed

Comments

@joereynolds
Copy link

joereynolds commented Aug 3, 2020

With the following mapping in my init.vim

nnoremap - :CHADopen<cr>

Every successive press of - will make the chadtree buffer smaller. It does not happen with any other key, just with -.
For now I have worked around this by using space instead.

nnoremap <space> :CHADopen<cr>

I suspect this is because it's conflicting with the smaller option for chadtree.

@ms-jpq
Copy link
Owner

ms-jpq commented Aug 3, 2020

You can rebind the resizing key to something else (for example u) like so:

lua vim.api.nvim_set_var("chadtree_settings", {keymap = {smaller = {"u"}}})

Then you can use - to do whatever you want.

@ms-jpq ms-jpq closed this as completed Aug 3, 2020
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

2 participants