andrewferrier / debugprint.nvim

Debugging in NeoVim the print() way!
MIT License
313 stars 17 forks source link

feat(keymap): map keys only on `modifiable` buffers and make keymaps … #90

Closed liljaylj closed 6 months ago

liljaylj commented 6 months ago

…buffer-local

map keys only on buffers with modifiable == true option. it doesn't make sense to debug print on nomodifiable buffers.

andrewferrier commented 6 months ago

Hi - thanks - this is a great idea, good contribution. Unfortunately it seems to cause most of the unit tests to fail currently. I assume this is probably either a timing issue or something to do with the event names.

If you have time to fix this, great, otherwise I will take a look but most likely it may be a few days.

andrewferrier commented 6 months ago

Ignore that last comment. I think I'm close to having a fix for the testing issue.

andrewferrier commented 6 months ago

OK, I've fixed the testing issues, this is all merged. Thanks for your contribution!