Skip to content

Commit

Permalink
[FIX] Removed VBlockMode + listen for ModeChanged now
Browse files Browse the repository at this point in the history
  • Loading branch information
marqmitk committed Feb 23, 2024
1 parent 164c83e commit 8d2e299
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/codesnap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ end, {})
local validModes = {
["v"] = true,
["V"] = true,
["^V"] = true,
}
vim.api.nvim_create_autocmd({ "CursorMoved" }, {
vim.api.nvim_create_autocmd({ "CursorMoved", "ModeChanged" }, {
callback = function()
local mode = vim.api.nvim_get_mode().mode

Expand Down

0 comments on commit 8d2e299

Please sign in to comment.