This repository was archived by the owner on Nov 1, 2022. It is now read-only.
hotfix/init.lua #8
Open
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.
On installing, I was receiving constant errors (both on open and on any edit). They were all related to line 59. I looked into it and noticed some issues:
bufnr
was being initialized after its call, causing errors. Moved local bufnr call to before line 59.bnr
, with no such variable in the code. Changed this tobufnr
.set colorcolumn
, the column with the "|" char being added was always 1 after what would be added by the aforementioned command. Now it lines up with the original internal command at the column number specified by the init settings.bufnr
, butnvim_get_current_buf()
and other related functions return buffer handles, not numbers, so renamed for clarity-sake.After making these changes, I was able to finally get it working. I cannot imagine how it could work before, given the issues on lines 59 and 73.