Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Conversation

Xemptuous
Copy link

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:

  • Line 59: variable bufnr was being initialized after its call, causing errors. Moved local bufnr call to before line 59.
  • Line 73: variable was called bnr, with no such variable in the code. Changed this to bufnr.
  • When compared to vim's internal 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.
  • Variables were called bufnr, but nvim_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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant