Skip to content

nvim-cmp source for nvim-dap REPL and nvim-dap-ui buffers

License

Notifications You must be signed in to change notification settings

rcarriga/cmp-dap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmp-dap

nvim-cmp source for nvim-dap REPL and nvim-dap-ui buffers

Setup

You must be using an adapter that supports completion requests. The following should print true when you are in an active debug session

:lua= require("dap").session().capabilities.supportsCompletionsRequest
require("cmp").setup({
  enabled = function()
    return vim.api.nvim_buf_get_option(0, "buftype") ~= "prompt"
        or require("cmp_dap").is_dap_buffer()
  end
})

require("cmp").setup.filetype({ "dap-repl", "dapui_watches", "dapui_hover" }, {
  sources = {
    { name = "dap" },
  },
})

About

nvim-cmp source for nvim-dap REPL and nvim-dap-ui buffers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages