How to map <C-u> and <C-d>?
              
              #1812
            
            -
| 
         Hi, return {
  "saghen/blink.cmp",
  -- optional: provides snippets for the snippet source
  -- WARN: I am using latest but the docs say to use
  -- dependencies = { "L3MON4D3/LuaSnip", version = "2.*" },
  dependencies = { "L3MON4D3/LuaSnip" },
  version = "1.*",
  opts = {
    enabled = function()
      return true
    end,
    keymap = {
      preset = "default",
      -- FIXME: Not working
      -- These are only being mapped to insert mode, not normal mode
      ["<C-u>"] = {
        function(cmp)
          -- return true
          return cmp.scroll_documentation_up(8)
        end,
        "fallback",
      },
      ["<C-d>"] = {
        function(cmp)
          -- return true
          return cmp.scroll_documentation_down(8)
        end,
        "fallback",
      },
    }
  }
} | 
  
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
| 
        
 This is possible  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
        
 It looks like you're trying to map  and  for scrolling documentation in blink.cmp, but they're only being mapped in insert mode. let me know if it works.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         blink.cmp doesn't show docs in normal mode, perhaps you're looking to scroll the   | 
  
Beta Was this translation helpful? Give feedback.

blink.cmp doesn't show docs in normal mode, perhaps you're looking to scroll the
vim.lsp.buf.hover()window?