more cleanup
This commit is contained in:
parent
7ca3a6947c
commit
cb64d9e1f2
4 changed files with 80 additions and 90 deletions
40
lua/lsp/blink.lua
Normal file
40
lua/lsp/blink.lua
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
return { -- blink autocompletion
|
||||
'saghen/blink.cmp',
|
||||
dependencies = { 'rafamadriz/friendly-snippets' },
|
||||
version = '*',
|
||||
---@module 'blink.cmp'
|
||||
---@type blink.cmp.Config
|
||||
opts = {
|
||||
completion = {
|
||||
list = {
|
||||
selection = {
|
||||
preselect = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
keymap = {
|
||||
preset = 'enter',
|
||||
['<Tab>'] = { 'select_next', 'fallback' },
|
||||
['<S-Tab>'] = { 'select_prev', 'fallback' },
|
||||
},
|
||||
appearance = {
|
||||
nerd_font_variant = 'normal',
|
||||
},
|
||||
completion = {
|
||||
documentation = { auto_show = true },
|
||||
},
|
||||
sources = {
|
||||
-- add lazydev to your completion providers
|
||||
default = { 'lazydev', 'lsp', 'path', 'snippets', 'buffer' },
|
||||
providers = {
|
||||
lazydev = {
|
||||
name = 'LazyDev',
|
||||
module = 'lazydev.integrations.blink',
|
||||
-- make lazydev completions top priority (see `:h blink.cmp`)
|
||||
score_offset = 100,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
opts_extend = { 'sources.default' },
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue