dap completion with blink
This commit is contained in:
parent
54e224ee75
commit
e97c34d65d
@ -26,6 +26,7 @@ return {
|
|||||||
-- make sure to set opts so that lazy.nvim calls blink.compat's setup
|
-- make sure to set opts so that lazy.nvim calls blink.compat's setup
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
|
'rcarriga/cmp-dap'
|
||||||
},
|
},
|
||||||
|
|
||||||
-- use a release tag to download pre-built binaries
|
-- use a release tag to download pre-built binaries
|
||||||
@ -53,11 +54,24 @@ return {
|
|||||||
nerd_font_variant = 'mono',
|
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
|
-- default list of enabled providers defined so that you can extend it
|
||||||
-- elsewhere in your config, without redefining it, via `opts_extend`
|
-- elsewhere in your config, without redefining it, via `opts_extend`
|
||||||
sources = {
|
sources = {
|
||||||
default = { 'copilot', 'lazydev', 'lsp', 'path', 'snippets', 'buffer', 'codeium' },
|
default = { 'copilot', 'lazydev', 'lsp', 'path', 'snippets', 'buffer', 'codeium' },
|
||||||
|
|
||||||
|
per_filetype = {
|
||||||
|
['dap-repl'] = {
|
||||||
|
'copilot',
|
||||||
|
'dap',
|
||||||
|
'snippets',
|
||||||
|
'path',
|
||||||
|
'buffer',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
providers = {
|
providers = {
|
||||||
copilot = {
|
copilot = {
|
||||||
name = 'copilot',
|
name = 'copilot',
|
||||||
@ -86,6 +100,14 @@ return {
|
|||||||
module = 'blink.compat.source',
|
module = 'blink.compat.source',
|
||||||
score_offset = -50
|
score_offset = -50
|
||||||
},
|
},
|
||||||
|
dap = {
|
||||||
|
name = 'dap',
|
||||||
|
module = 'blink.compat.source',
|
||||||
|
async = true,
|
||||||
|
enabled = function()
|
||||||
|
return require('cmp_dap').is_dap_buffer()
|
||||||
|
end,
|
||||||
|
},
|
||||||
buffer = {
|
buffer = {
|
||||||
name = 'Buffer',
|
name = 'Buffer',
|
||||||
module = 'blink.cmp.sources.buffer',
|
module = 'blink.cmp.sources.buffer',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user