Skip to content

Conversation

@MahanRahmati
Copy link
Contributor

Add function to check if hint is shown in llama.
Example with blink.cmp:

      ---@module 'blink.cmp'
      ---@type blink.cmp.Config
      return {
        keymap = {
          preset = "none",
          ["<Tab>"] = {
            function(cmp)
              if vim.fn["llama#is_hint_shown"]() then
                vim.schedule(function()
                  vim.fn["llama#fim_accept"] "full"
                end)
                return true
              end
              if cmp.is_visible() then
                return cmp.select_next()
              else
                return cmp.select_and_accept()
              end
            end,
            "fallback",
          },
        },
      }

Add function to check if hint is shown in llama.
@ggerganov ggerganov merged commit 12f9455 into ggml-org:master Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants