Skip to content

fix: correct typos and reference errors causing runtime failures#40

Open
yzcj105 wants to merge 1 commit intonshen:mainfrom
yzcj105:fix/multiple-bugs
Open

fix: correct typos and reference errors causing runtime failures#40
yzcj105 wants to merge 1 commit intonshen:mainfrom
yzcj105:fix/multiple-bugs

Conversation

@yzcj105
Copy link

@yzcj105 yzcj105 commented Mar 16, 2026

Summary

This PR fixes 4 bugs that cause runtime errors or incorrect behavior:

  • Fix typo in isMAC(): "maxunic""macunix" (was always returning false on macOS)
  • Fix isLinux() function: Remove incorrect self parameter and use proper global function references
  • Fix nvim-tree keymaps: Add missing keys. prefix for copy_absolute_path and toggle_file_info
  • Fix fix-yank require path: "utils.fix-yank""insis.utils.fix-yank"

Fixes #39

Test Plan

All bugs were verified with Neovim v0.11.6:

  1. isMAC() typo:

    :echo has("macunix")  --> 1 (correct)
    :echo has("maxunic")  --> 0 (typo - always false)
    
  2. isLinux() error:

    Before: ERROR: attempt to index local 'self' (a nil value)
    After: Works correctly
    
  3. nvim-tree keymaps: gy and gh keymaps now work in nvim-tree

  4. fix-yank require:

    Before: module 'utils.fix-yank' not found
    After: Module loads correctly
    

- Fix typo in isMAC(): "maxunic" -> "macunix"
- Fix isLinux(): remove incorrect self parameter, use global functions
- Fix nvim-tree keymaps: add missing "keys." prefix for copy_absolute_path and toggle_file_info
- Fix fix-yank require path: "utils.fix-yank" -> "insis.utils.fix-yank"

Fixes nshen#39
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.

Bug: Multiple typos and reference errors causing runtime failures

1 participant