diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua index 3730ffb..bbf1009 100644 --- a/lua/plugins/blink.lua +++ b/lua/plugins/blink.lua @@ -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',