dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

completion.lua (2041B)


      1 return {
      2   'saghen/blink.cmp',
      3   -- optional: provides snippets for the snippet source
      4   -- dependencies = { 'rafamadriz/friendly-snippets' },
      5 
      6   -- use a release tag to download pre-built binaries
      7   version = '1.*',
      8 
      9   ---@module 'blink.cmp'
     10   ---@type blink.cmp.Config
     11   opts = {
     12     -- 'default' (recommended) for mappings similar to built-in completions (C-y to accept)
     13     -- 'super-tab' for mappings similar to vscode (tab to accept)
     14     -- 'enter' for enter to accept
     15     -- 'none' for no mappings
     16     --
     17     -- All presets have the following mappings:
     18     -- C-space: Open menu or open docs if already open
     19     -- C-n/C-p or Up/Down: Select next/previous item
     20     -- C-e: Hide menu
     21     -- C-k: Toggle signature help (if signature.enabled = true)
     22     --
     23     -- See :h blink-cmp-config-keymap for defining your own keymap
     24     keymap = { preset = 'super-tab' },
     25 
     26     appearance = {
     27       -- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
     28       -- Adjusts spacing to ensure icons are aligned
     29       nerd_font_variant = 'mono'
     30     },
     31 
     32     -- (Default) Only show the documentation popup when manually triggered
     33     completion = {
     34       documentation = { auto_show = false },
     35     },
     36 
     37     cmdline = { enabled = false },
     38     snippets = { preset = 'mini_snippets' },
     39 
     40     -- Default list of enabled providers defined so that you can extend it
     41     -- elsewhere in your config, without redefining it, due to `opts_extend`
     42     sources = {
     43       default = { 'lsp', 'path', 'snippets', 'buffer' },
     44     },
     45 
     46     signature = {
     47       enabled = true
     48     },
     49 
     50     -- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
     51     -- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
     52     -- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
     53     --
     54     -- See the fuzzy documentation for more information
     55     fuzzy = { implementation = "prefer_rust_with_warning" }
     56   },
     57   opts_extend = { "sources.default" }
     58 }