nvim: hopefully fix weird tab behavior
This commit is contained in:
parent
57717e5efa
commit
d8d9bab263
|
@ -262,24 +262,24 @@
|
||||||
"<tab>" = cmp.mapping (fallback:
|
"<tab>" = cmp.mapping (fallback:
|
||||||
IF (CALL cmp.visible) (
|
IF (CALL cmp.visible) (
|
||||||
CALL cmp.select_next_item
|
CALL cmp.select_next_item
|
||||||
) (CALL luasnip.expand_or_jumpable) (
|
) /*(CALL luasnip.expand_or_jumpable) (
|
||||||
vim.api.nvim_feedkeys
|
vim.api.nvim_feedkeys
|
||||||
(vim.api.nvim_replace_termcodes "<Plug>luasnip-expand-or-jump" true true true)
|
(vim.api.nvim_replace_termcodes "<Plug>luasnip-expand-or-jump" true true true)
|
||||||
""
|
""
|
||||||
false
|
false
|
||||||
) ELSE (
|
)*/ ELSE (
|
||||||
CALL fallback
|
CALL fallback
|
||||||
)
|
)
|
||||||
) [ "i" "s" ];
|
) [ "i" "s" ];
|
||||||
"<S-tab>" = cmp.mapping (fallback:
|
"<S-tab>" = cmp.mapping (fallback:
|
||||||
IF (CALL cmp.visible) (
|
IF (CALL cmp.visible) (
|
||||||
CALL cmp.select_prev_item
|
CALL cmp.select_prev_item
|
||||||
) (luasnip.jumpable (-1)) (
|
) /*(luasnip.jumpable (-1)) (
|
||||||
vim.api.nvim_feedkeys
|
vim.api.nvim_feedkeys
|
||||||
(vim.api.nvim_replace_termcodes "<Plug>luasnip-jump-prev" true true true)
|
(vim.api.nvim_replace_termcodes "<Plug>luasnip-jump-prev" true true true)
|
||||||
""
|
""
|
||||||
false
|
false
|
||||||
) ELSE (
|
)*/ ELSE (
|
||||||
CALL fallback
|
CALL fallback
|
||||||
)
|
)
|
||||||
) [ "i" "s" ];
|
) [ "i" "s" ];
|
||||||
|
|
Loading…
Reference in a new issue