Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rcarriga/cmp-dap
nvim-cmp source for nvim-dap REPL and nvim-dap-ui buffers
https://github.com/rcarriga/cmp-dap
Last synced: about 2 months ago
JSON representation
nvim-cmp source for nvim-dap REPL and nvim-dap-ui buffers
- Host: GitHub
- URL: https://github.com/rcarriga/cmp-dap
- Owner: rcarriga
- License: mit
- Created: 2022-04-27T08:19:12.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-10T19:38:36.000Z (10 months ago)
- Last Synced: 2024-05-05T15:37:48.071Z (5 months ago)
- Language: Lua
- Size: 6.84 KB
- Stars: 126
- Watchers: 6
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
``````lua
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" },
},
})
```