Problems with accept the first element in command mode #123

Open
opened 2024-12-21 17:52:47 -05:00 by emirmorris · 0 comments
emirmorris commented 2024-12-21 17:52:47 -05:00 (Migrated from github.com)

The "Enter" does not accept the first suggestion. Ctrl-Y does, but it is very inconvenient.

https://github.com/user-attachments/assets/4336a96e-626d-4d6d-a9ac-1eb1b62ff139

Tried to set up CMP:

    ["<CR>"] = cmp.mapping.confirm {
      behavior = cmp.ConfirmBehavior.Insert,
      select = true,
    },

Tried the same for supermaven-nvim :

{
  "supermaven-inc/supermaven-nvim",
  opts = {
    keymaps = { 
      accept_word = "<CR>", -- Use Enter (Carriage Return)
    },
    ignore_filetypes = { 
      javascript = true, 
      python = true, 
      lua = true, 
      markdown = true, 
      gitcommit = true, 
      norg = true,
    },
    cmdline_only = true,

    log_level = "off",
  },
}
The "Enter" does not accept the first suggestion. Ctrl-Y does, but it is very inconvenient. https://github.com/user-attachments/assets/4336a96e-626d-4d6d-a9ac-1eb1b62ff139 Tried to set up CMP: ``` ["<CR>"] = cmp.mapping.confirm { behavior = cmp.ConfirmBehavior.Insert, select = true, }, ``` Tried the same for supermaven-nvim : ``` { "supermaven-inc/supermaven-nvim", opts = { keymaps = { accept_word = "<CR>", -- Use Enter (Carriage Return) }, ignore_filetypes = { javascript = true, python = true, lua = true, markdown = true, gitcommit = true, norg = true, }, cmdline_only = true, log_level = "off", }, } ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
supermaven-inc/supermaven-nvim#123
No description provided.