From 8d2e299a938cd9bcda6217c03fbfc2d5626bb30e Mon Sep 17 00:00:00 2001 From: Marco Kutscha Date: Fri, 23 Feb 2024 21:14:59 +0100 Subject: [PATCH] [FIX] Removed VBlockMode + listen for ModeChanged now --- plugin/codesnap.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/codesnap.lua b/plugin/codesnap.lua index 5f81fe5..b09fd0a 100644 --- a/plugin/codesnap.lua +++ b/plugin/codesnap.lua @@ -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