nvim: Migrated all dap-related things to their own file
This commit is contained in:
parent
4f55c742ad
commit
7c747cbbc1
4 changed files with 162 additions and 82 deletions
|
@ -88,6 +88,32 @@ return require('packer').startup(function()
|
|||
end
|
||||
}
|
||||
|
||||
---- DAP (Debug Adapter Protocol)
|
||||
use { -- nvim-dap: DAP support
|
||||
'mfussenegger/nvim-dap',
|
||||
config = function()
|
||||
require('blake.dap').nvim_dap()
|
||||
end
|
||||
}
|
||||
use { -- DAP adapter installer
|
||||
'Pocco81/DAPInstall.nvim',
|
||||
config = function()
|
||||
require('blake.dap').dap_install()
|
||||
end
|
||||
}
|
||||
use { -- virtual-text: Print Variable names while debugging
|
||||
'theHamsta/nvim-dap-virtual-text',
|
||||
config = function()
|
||||
require('blake.dap').dap_vtext()
|
||||
end
|
||||
}
|
||||
use { -- a UI for nvim-dap (easy access to info)
|
||||
'rcarriga/nvim-dap-ui',
|
||||
config = function()
|
||||
require('blake.dap').dap_ui()
|
||||
end,
|
||||
}
|
||||
|
||||
---- Other IDE features
|
||||
use { -- git integration
|
||||
'lewis6991/gitsigns.nvim',
|
||||
|
@ -128,32 +154,6 @@ return require('packer').startup(function()
|
|||
ft = { 'md', 'markdown', }
|
||||
}
|
||||
|
||||
---- DAP (Debug Adapter Protocol)
|
||||
use { -- nvim-dap: DAP support
|
||||
'mfussenegger/nvim-dap',
|
||||
config = function()
|
||||
require('blake.lsp').nvim_dap()
|
||||
end
|
||||
}
|
||||
use { -- DAP adapter installer
|
||||
'Pocco81/DAPInstall.nvim',
|
||||
config = function()
|
||||
require('blake.dap').dapinstall()
|
||||
end
|
||||
}
|
||||
use { -- Print Variable names while debugging
|
||||
'theHamsta/nvim-dap-virtual-text',
|
||||
config = function()
|
||||
require'nvim-dap-virtual-text'
|
||||
-- virtual text deactivated (default)
|
||||
vim.g.dap_virtual_text = true
|
||||
-- show virtual text for current frame (recommended)
|
||||
vim.g.dap_virtual_text = true
|
||||
-- request variable values for all frames (experimental)
|
||||
vim.g.dap_virtual_text = 'all frames'
|
||||
end
|
||||
}
|
||||
|
||||
-- Conveniences
|
||||
use { -- Undo tree
|
||||
'mbbill/undotree',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue