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

bug fix: disable default mappings using ""(empty string) #77

Conversation

linrongbin16
Copy link

@linrongbin16 linrongbin16 commented Feb 18, 2023

As mentioned in #48 , I use "" (empty string) to disable default mapping.

In lua, print('' or 123) will print '' (empty string), print(nil or 123) will print 123.

So use ""(empty string) could let mappings = mappings or '<leader>gy' work correctly.
And check if the mappings variable string length is greater than 0, then actually set the key mappings in vim.

@linrongbin16 linrongbin16 deleted the linrongbin16/fix-disable-default-mappings branch February 19, 2023 08:04
stevanmilic pushed a commit to stevanmilic/gitlinker.nvim that referenced this pull request Nov 12, 2023
* perf(log): reduce logs

* chore: update comments
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.

None yet

1 participant