config.nvim

NeoVim config
git clone git://popovic.xyz/nvim.config.git/
Log | Files | Refs

blimp.lua (1067B)


      1 ---@diagnostic disable: undefined-global
      2 return {
      3   "saghen/blink.cmp",
      4   event = "InsertEnter",
      5   version = "v1",
      6   dependencies = {
      7     "L3MON4D3/LuaSnip",
      8     "fang2hou/blink-copilot"
      9   },
     10   opts = {
     11     keymap = {
     12       ['<C-a>'] = { 'accept', 'fallback' },
     13       ['<C-n>'] = { 'select_next', 'show' },
     14       ['<C-p>'] = { 'select_prev' },
     15       ['<C-b>'] = { 'scroll_documentation_up', 'fallback' },
     16       ['<C-f>'] = { 'scroll_documentation_down', 'fallback' },
     17     },
     18     completion = {
     19       documentation = {
     20         auto_show = true,
     21         auto_show_delay_ms = 200,
     22       },
     23     },
     24     cmdline = { enabled = false },
     25     snippets = { preset = "luasnip" },
     26     sources = {
     27       default = {
     28         "copilot",
     29         'lsp',
     30         'path',
     31         'snippets',
     32         'buffer'
     33       },
     34       providers = {
     35         copilot = {
     36           name = "copilot",
     37           module = "blink-copilot",
     38           score_offset = 100,
     39           async = true,
     40         }
     41       }
     42     },
     43     appearance = {
     44       kind_icons = {
     45         copilot = " ",
     46       }
     47     }
     48   }
     49 }