Skip to content

fix: Bug: Multiple typos and reference errors causing runtime failures#41

Open
JiwaniZakir wants to merge 1 commit intonshen:mainfrom
JiwaniZakir:fix/issue-39
Open

fix: Bug: Multiple typos and reference errors causing runtime failures#41
JiwaniZakir wants to merge 1 commit intonshen:mainfrom
JiwaniZakir:fix/issue-39

Conversation

@JiwaniZakir
Copy link

Fixes #39

Two separate bugs caused runtime failures in the plugin configuration. In lua/insis/utils/global.lua, isMAC() used a typo "maxunic" instead of "macunix", and isLinux() referenced self.is_wsl() and self.is_mac() as method calls on an implicit self parameter instead of the correct global functions _G.isWSL() and _G.isMAC(). In lua/insis/plugins/nvim-tree.lua, two keymap bindings accessed cfg.copy_absolute_path and cfg.toggle_file_info directly instead of the correct cfg.keys.copy_absolute_path and cfg.keys.toggle_file_info, causing nil key lookups at startup. Fixes were verified by inspecting the config structure and global function signatures to confirm the corrected references match the actual API.

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