woohooo
This commit is contained in:
commit
085347ddac
49 changed files with 1931 additions and 0 deletions
54
lua/plugins/blink-cmp.lua
Normal file
54
lua/plugins/blink-cmp.lua
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
return {
|
||||
'saghen/blink.cmp',
|
||||
event = 'VimEnter',
|
||||
version = '1.*',
|
||||
dependencies = {
|
||||
{
|
||||
'L3MON4D3/LuaSnip',
|
||||
version = '2.*',
|
||||
build = (function()
|
||||
if vim.fn.has 'win32' == 1 or vim.fn.executable 'make' == 0 then
|
||||
return
|
||||
end
|
||||
return 'make install_jsregexp'
|
||||
end)(),
|
||||
opts = {},
|
||||
},
|
||||
'folke/lazydev.nvim',
|
||||
},
|
||||
--- @module 'blink.cmp'
|
||||
--- @type blink.cmp.Config
|
||||
opts = {
|
||||
keymap = {
|
||||
preset = 'default',
|
||||
['<Tab>'] = { 'select_and_accept', 'fallback' },
|
||||
['<Esc>'] = { 'cancel', 'fallback' },
|
||||
},
|
||||
appearance = {
|
||||
nerd_font_variant = 'mono',
|
||||
},
|
||||
completion = {
|
||||
menu = { auto_show = true },
|
||||
ghost_text = {
|
||||
enabled = true,
|
||||
show_without_selection = true,
|
||||
show_with_menu = true,
|
||||
},
|
||||
documentation = { auto_show = true, auto_show_delay_ms = 500 },
|
||||
},
|
||||
sources = {
|
||||
default = { 'lsp', 'path', 'snippets', 'lazydev', 'codecompanion' },
|
||||
providers = {
|
||||
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
|
||||
codecompanion = {
|
||||
name = 'codecompanion',
|
||||
module = 'codecompanion.providers.completion.blink',
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
snippets = { preset = 'luasnip' },
|
||||
fuzzy = { implementation = 'lua' },
|
||||
signature = { enabled = true },
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue