about summary refs log tree commit diff
path: root/fnl/nvrc
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-05-11 01:42:59 +0900
committersefidel <contact@sefidel.net>2024-05-11 01:42:59 +0900
commit2fb4d5c3767935551f13a3cf1fa9f4814014ee8f (patch)
tree6828a39ebd17bec3014dac03160c50b6f8810f8c /fnl/nvrc
parentc50c25e13875034e5bd7632e0a42bce7aa851d26 (diff)
downloadnvimrc-2fb4d5c3767935551f13a3cf1fa9f4814014ee8f.tar.gz
nvimrc-2fb4d5c3767935551f13a3cf1fa9f4814014ee8f.zip
fix(packs/cmp): use vim.snippets.active
* Breaking change introduced in https://github.com/neovim/neovim/commit/bc7f86209d3961aa479a8caeb792a8d39de55ece
Diffstat (limited to 'fnl/nvrc')
-rw-r--r--fnl/nvrc/packs/cmp.fnl4
1 files changed, 2 insertions, 2 deletions
diff --git a/fnl/nvrc/packs/cmp.fnl b/fnl/nvrc/packs/cmp.fnl
index 11595d1..aeb514f 100644
--- a/fnl/nvrc/packs/cmp.fnl
+++ b/fnl/nvrc/packs/cmp.fnl
@@ -60,11 +60,11 @@
                                                                :select false}) [:i :c])
                       :<Tab> (mapping {:i (fn [fallback]
                                               (if (visible) (select_next_item)
-                                              (vim.snippet.jumpable 1) (vim.snippet.jump 1)
+                                              (vim.snippet.active {:direction 1}) (vim.snippet.jump 1)
                                               (fallback)))})
                       :<S-Tab> (mapping {:i (fn [fallback]
                                                   (if (visible) (select_next_item)
-                                                  (vim.snippet.jumpable -1) (vim.snippet.jump -1)
+                                                  (vim.snippet.active {:direction -1}) (vim.snippet.jump -1)
                                                   (fallback)))})}
             :sources [{:name :nvim_lsp}
                       {:name :nvim_lsp_signature_help}]