Skip to content

Commit b584eea

Browse files
nvim: alpha support for debugger protocol
1 parent 6a871bb commit b584eea

3 files changed

Lines changed: 36 additions & 0 deletions

File tree

.config/cvim/init/init.vim

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,21 @@ elseif g:vimDistribution ==# g:VIM_FLAVOR_NEOVIM
324324
\ },
325325
\ 'setting': "$HOME/.config/cvim/settings/nvim_lspconfig.lua"
326326
\ }
327+
" Bridge layer between dap and mason
328+
let cvim_plugins.mason_nvim_dap = {
329+
\ 'name': 'jay-babu/mason-nvim-dap.nvim',
330+
\ 'dependencies': {
331+
\ 'mason-org/mason.nvim':{'lazy': 1},
332+
\ 'mfussenegger/nvim-dap':{'lazy': 1},
333+
\ },
334+
\ 'setting': "$HOME/.config/cvim/settings/nvim_mason_nvim_dap.lua"
335+
\ }
336+
" dap: Dap client
337+
let cvim_plugins.nvim_dap = {
338+
\ 'name': 'mfussenegger/nvim-dap',
339+
\ 'lazy': 1,
340+
\ 'setting': "$HOME/.config/cvim/settings/nvim_dap.lua"
341+
\ }
327342
" treesitter: parser generator to provide syntax highliting
328343
let cvim_plugins.treesitter = {
329344
\ 'name': 'nvim-treesitter/nvim-treesitter',

.config/cvim/settings/nvim_dap.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
local function config()
3+
-- FIXME: Continue setup based on
4+
-- - https://tamerlan.dev/a-guide-to-debugging-applications-in-neovim/
5+
-- - https://www.johntobin.ie/blog/debugging_in_neovim_with_nvim-dap/
6+
-- - https://dhruvasagar.dev/posts/neovim-java-ide/
7+
end
8+
9+
return {config = config}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
local function config()
2+
-- Setup mason-nvim-dap based on ':h masson-nvim-dap
3+
require('mason-nvim-dap').setup({
4+
-- DAP to configure is defined in ???
5+
ensure_installed = {
6+
'bash', -- See https://github.com/jay-babu/mason-nvim-dap.nvim/blob/9a10e096703966335bd5c46c8c875d5b0690dade/lua/mason-nvim-dap/mappings/source.lua#L17
7+
},
8+
automatic_installation = true
9+
})
10+
end
11+
12+
return {config = config}

0 commit comments

Comments
 (0)