diff options
| author | Robert Günzler <r@gnzler.io> | 2026-02-10 12:32:48 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-02-10 12:41:25 +0100 |
| commit | 63feeb9f369fc6176e85c1c2d8fcc863caad1946 (patch) | |
| tree | 41cd5d2d1ec36e74e464caab722cc9b460153f04 /.vim/lua/internal/plugins/blink.lua | |
| parent | 5bd0a4aca65ecb9818ef1285982d160b6b6ff665 (diff) | |
start new
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '.vim/lua/internal/plugins/blink.lua')
| -rw-r--r-- | .vim/lua/internal/plugins/blink.lua | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/.vim/lua/internal/plugins/blink.lua b/.vim/lua/internal/plugins/blink.lua deleted file mode 100644 index 1d0e0ae..0000000 --- a/.vim/lua/internal/plugins/blink.lua +++ /dev/null @@ -1,85 +0,0 @@ -return { - { - 'saghen/blink.cmp', - version = '1.*', - - lazy = false, - - dependencies = { - { - 'L3MON4D3/LuaSnip', - version = 'v2.*', - build = 'make install_jsregexp', - config = function() - require('internal.snippets') - end, - }, - }, - - init = function() - vim.opt.completeopt = { 'menu', 'menuone', 'noselect' } - vim.opt.shortmess:append('c') - vim.opt.pumheight = 20 -- max height of completion window - - local hl = vim.api.nvim_set_hl - hl(0, 'BlinkCmpSource', { link = 'Comment', force = true }) - hl(0, 'BlinkCmpLabelDescription', { link = 'Comment', force = true }) - end, - - opts = { - -- TODO: - -- 'prefer_rust_with_warning', requires nightly rust, due to: - -- https://github.com/rust-lang/rust/issues/86656 - fuzzy = { implementation = 'lua' }, - - appearance = { - -- fallback to cmp highlight names - use_nvim_cmp_as_default = true, - -- adjusts spacing to ensure icons are aligned - -- nerd_font_variant = 'normal', - }, - - sources = { - providers = { - buffer = { min_keyword_length = 3 }, - snippets = { min_keyword_length = 3 }, - }, - }, - - completion = { - documentation = { auto_show = true }, - menu = { - draw = { - columns = { - { 'kind_icon' }, - { 'label', 'label_description', gap = 1 }, - { 'source_name' }, - }, - }, - }, - }, - - signature = { - enabled = true, - window = { scrollbar = false }, -- BUG: weird artifacts - }, - - keymap = { - ['<C-space>'] = { 'show', 'show_documentation', 'hide_documentation' }, - ['<C-e>'] = { 'cancel', 'fallback' }, - ['<C-y>'] = { 'select_and_accept' }, - ['<C-p>'] = { 'select_prev', 'fallback' }, - ['<C-n>'] = { 'select_next', 'fallback' }, - ['<C-b>'] = { 'scroll_documentation_up', 'fallback' }, - ['<C-f>'] = { 'scroll_documentation_down', 'fallback' }, - ['<Tab>'] = { 'select_and_accept', 'fallback' }, - ['<C-j>'] = { 'snippet_forward', 'fallback' }, - ['<C-k>'] = { 'snippet_backward', 'fallback' }, - -- ['<C-l>'] = { 'show', 'hide', 'fallback' }, - }, - - snippets = { preset = 'luasnip' }, - }, - opts_extend = { 'sources.default' }, - }, -} |