We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83a6ee5 commit 5787f08Copy full SHA for 5787f08
lua/snippy/main.lua
@@ -336,7 +336,7 @@ function M.cut_text(mode, visual)
336
end
337
338
function M._mirror_stops()
339
- if not util.pumvisible() and buf.current_stop ~= 0 then
+ if buf.current_stop ~= 0 then
340
buf.mirror_stop(buf.current_stop)
341
342
lua/snippy/util.lua
@@ -57,12 +57,4 @@ function M.merge_snippets(current, added)
57
return result
58
59
60
-function M.pumvisible()
61
- local ok, cmp = pcall(require, 'cmp')
62
- if ok then
63
- return cmp.visible()
64
- end
65
- return vim.fn.pumvisible() == 1
66
-end
67
-
68
return M
0 commit comments