diff options
Diffstat (limited to 'dotfiles/vim/lua')
-rw-r--r-- | dotfiles/vim/lua/myConfig.lua | 8 |
1 files changed, 4 insertions, 4 deletions
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( | |||
427 | "i", | 427 | "i", |
428 | "<Tab>", | 428 | "<Tab>", |
429 | function() | 429 | function() |
430 | return vim.fn["vsnip#jumpable"](1) and "<Plug>(vsnip-jump-next)" or "<Tab>" | 430 | return vim.fn["vsnip#jumpable"](1) == 1 and "<Plug>(vsnip-jump-next)" or "<Tab>" |
431 | end, | 431 | end, |
432 | { silent = true, expr = true } | 432 | { silent = true, expr = true } |
433 | ) | 433 | ) |
@@ -435,7 +435,7 @@ vim.keymap.set( | |||
435 | "s", | 435 | "s", |
436 | "<Tab>", | 436 | "<Tab>", |
437 | function() | 437 | function() |
438 | return vim.fn["vsnip#jumpable"](1) and "<Plug>(vsnip-jump-next)" or "<Tab>" | 438 | return vim.fn["vsnip#jumpable"](1) == 1 and "<Plug>(vsnip-jump-next)" or "<Tab>" |
439 | end, | 439 | end, |
440 | { silent = true, expr = true } | 440 | { silent = true, expr = true } |
441 | ) | 441 | ) |
@@ -444,7 +444,7 @@ vim.keymap.set( | |||
444 | "i", | 444 | "i", |
445 | "<S-Tab>", | 445 | "<S-Tab>", |
446 | function() | 446 | function() |
447 | return vim.fn["vsnip#jumpable"](-1) and "<Plug>(vsnip-jump-prev)" or "<S-Tab>" | 447 | return vim.fn["vsnip#jumpable"](-1) == 1 and "<Plug>(vsnip-jump-prev)" or "<S-Tab>" |
448 | end, | 448 | end, |
449 | { silent = true, expr = true } | 449 | { silent = true, expr = true } |
450 | ) | 450 | ) |
@@ -452,7 +452,7 @@ vim.keymap.set( | |||
452 | "s", | 452 | "s", |
453 | "<S-Tab>", | 453 | "<S-Tab>", |
454 | function() | 454 | function() |
455 | return vim.fn["vsnip#jumpable"](-1) and "<Plug>(vsnip-jump-prev)" or "<S-Tab>" | 455 | return vim.fn["vsnip#jumpable"](-1) == 1 and "<Plug>(vsnip-jump-prev)" or "<S-Tab>" |
456 | end, | 456 | end, |
457 | { silent = true, expr = true } | 457 | { silent = true, expr = true } |
458 | ) | 458 | ) |