Skip to content

Conversation

@JafarAbdi
Copy link

Fix: #12

@theHamsta theHamsta enabled auto-merge May 13, 2022 23:14
auto-merge was automatically disabled May 14, 2022 16:19

Head branch was pushed to by a user without write access

-- Highlight range [start_line, end_line) 0-based
local highlighter = function(start_line, end_line)
vim.api.nvim_buf_set_extmark(bufnr, current_scope_namespace, math.max(vim.fn.line "w0" - 1, start_line), 0, {
end_row = math.min(vim.fn.line "w$", end_line),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't use functions that assume the current buffer for a function that explicitly takes a bufnr as an argument

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.

Highlight current scope - full buffer width?

2 participants