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

feat(snippet): support multiple sessions #29340

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MariaSolOs
Copy link
Member

TODO

@@ -397,7 +397,7 @@ local function setup_autocmds(bufnr)
local cursor_row, cursor_col = cursor_pos()

-- The cursor left the snippet region.
local snippet_range = get_extmark_range(bufnr, M._session.extmark_id)
local snippet_range = get_extmark_range(bufnr, M._current_session.extmark_id)
Copy link
Member

Choose a reason for hiding this comment

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

the old name seems fine. and is less verbose :)

Suggested change
local snippet_range = get_extmark_range(bufnr, M._current_session.extmark_id)
local snippet_range = get_extmark_range(bufnr, M._session.extmark_id)

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair enough, I blame C# for making me use extra verbose names lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants