Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to apply the current scope highlight to the whole line #31

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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