Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

^I is inserted when clicking tab in cmdline with settings.completion.menu.auto_show = "function(ctx) return ctx.mode ~= 'cmdline' end" #1110

Open
2 tasks done
Lalit64 opened this issue Jan 29, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Lalit64
Copy link

Lalit64 commented Jan 29, 2025

Make sure you have done the following

  • Updated to the latest version of blink.cmp
  • Searched for existing issues and documentation (try <C-k> on https://cmp.saghen.dev)

Bug Description

Basically I've explained the issue in the title. I am using NixVim to configure blink.cmp if it is relevant. When I click tab while typing in the cmdline instead of completing how it normally does it it inserting ^I. Also is there no way to disable the completion menu for cmdline without having to do the hack settings.completion.menu.auto_show = "function(ctx) return ctx.mode ~= 'cmdline' end". The cmdline completion is kind of wack I don't know if it is a problem on how I set it up but when I try to do :w in the cmdline it shows the completion and the first completion option :wall. See below

Image

Relevant configuration

blink-cmp = {
    enable = true;
    settings = {
    keymap.preset = "enter";

    completion = {
      menu.auto_show.__raw = "function(ctx) return ctx.mode ~= 'cmdline' end";
    };

    sources = {
      default = [
        "lsp"
         "path"
         "snippets"
         "buffer"
       ];
      cmdline = [ ];
     };
   };
 };

neovim version

NVIM v0.10.3 Build type: Release LuaJIT 2.1.1713773202

blink.cmp version

v0.10.0 (from nixpkgs)

@Lalit64 Lalit64 added the bug Something isn't working label Jan 29, 2025
@prss-ad
Copy link

prss-ad commented Jan 29, 2025

Same here, happens also when using something like enabled = function( ) return vim.fn.mode(1) ~= 'c' end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants