From 51f984910e920f976a777dc52700c1e0c84c12b5 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 18 Dec 2023 13:42:14 +0100 Subject: vim: fix and --- dotfiles/vim/lua/myConfig.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dotfiles') diff --git a/dotfiles/vim/lua/myConfig.lua b/dotfiles/vim/lua/myConfig.lua index e49b436..305f52f 100644 --- a/dotfiles/vim/lua/myConfig.lua +++ b/dotfiles/vim/lua/myConfig.lua @@ -427,7 +427,7 @@ vim.keymap.set( "i", "", function() - return vim.fn["vsnip#jumpable"](1) and "(vsnip-jump-next)" or "" + return vim.fn["vsnip#jumpable"](1) == 1 and "(vsnip-jump-next)" or "" end, { silent = true, expr = true } ) @@ -435,7 +435,7 @@ vim.keymap.set( "s", "", function() - return vim.fn["vsnip#jumpable"](1) and "(vsnip-jump-next)" or "" + return vim.fn["vsnip#jumpable"](1) == 1 and "(vsnip-jump-next)" or "" end, { silent = true, expr = true } ) @@ -444,7 +444,7 @@ vim.keymap.set( "i", "", function() - return vim.fn["vsnip#jumpable"](-1) and "(vsnip-jump-prev)" or "" + return vim.fn["vsnip#jumpable"](-1) == 1 and "(vsnip-jump-prev)" or "" end, { silent = true, expr = true } ) @@ -452,7 +452,7 @@ vim.keymap.set( "s", "", function() - return vim.fn["vsnip#jumpable"](-1) and "(vsnip-jump-prev)" or "" + return vim.fn["vsnip#jumpable"](-1) == 1 and "(vsnip-jump-prev)" or "" end, { silent = true, expr = true } ) -- cgit v1.2.3