fix: Bug: Multiple typos and reference errors causing runtime failures#41
Open
JiwaniZakir wants to merge 1 commit intonshen:mainfrom
Open
fix: Bug: Multiple typos and reference errors causing runtime failures#41JiwaniZakir wants to merge 1 commit intonshen:mainfrom
JiwaniZakir wants to merge 1 commit intonshen:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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", andisLinux()referencedself.is_wsl()andself.is_mac()as method calls on an implicit self parameter instead of the correct global functions_G.isWSL()and_G.isMAC(). Inlua/insis/plugins/nvim-tree.lua, two keymap bindings accessedcfg.copy_absolute_pathandcfg.toggle_file_infodirectly instead of the correctcfg.keys.copy_absolute_pathandcfg.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.