dap completion with blink

This commit is contained in:
Oliver Hartmann 2025-03-18 21:29:32 +01:00
parent 54e224ee75
commit e97c34d65d

View File

@ -26,6 +26,7 @@ return {
-- make sure to set opts so that lazy.nvim calls blink.compat's setup
opts = {},
},
'rcarriga/cmp-dap'
},
-- use a release tag to download pre-built binaries
@ -53,11 +54,24 @@ return {
nerd_font_variant = 'mono',
},
enabled = function()
return (vim.bo.buftype ~= 'prompt' and vim.b.completion ~= false) or require('cmp_dap').is_dap_buffer()
end,
-- default list of enabled providers defined so that you can extend it
-- elsewhere in your config, without redefining it, via `opts_extend`
sources = {
default = { 'copilot', 'lazydev', 'lsp', 'path', 'snippets', 'buffer', 'codeium' },
per_filetype = {
['dap-repl'] = {
'copilot',
'dap',
'snippets',
'path',
'buffer',
}
},
providers = {
copilot = {
name = 'copilot',
@ -86,6 +100,14 @@ return {
module = 'blink.compat.source',
score_offset = -50
},
dap = {
name = 'dap',
module = 'blink.compat.source',
async = true,
enabled = function()
return require('cmp_dap').is_dap_buffer()
end,
},
buffer = {
name = 'Buffer',
module = 'blink.cmp.sources.buffer',