Skip to content

Conversation

@Iron-E
Copy link
Owner

@Iron-E Iron-E commented Mar 7, 2024

Closes #25

v:count can't be updated manually, so I've created an alternate facility which tracks count until commands are executed:

local my_mode = {
	g = function()
		vim.notify('count: ' .. vim.g.myModeModeCount)
	end
}

vim.keymap.set('n', 'M', function()
	require('libmodal').mode.enter('My mode', my_mode)
end)

@Iron-E Iron-E added the bug Something isn't working label Mar 7, 2024
@Iron-E Iron-E self-assigned this Mar 7, 2024
@Iron-E Iron-E merged commit 485b77b into master Mar 12, 2024
@Iron-E Iron-E deleted the fix/25 branch March 12, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: vim.v.count is always 0

2 participants