mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
enc: auto install cpp dap
This commit is contained in:
parent
a7933afc34
commit
d352202bcf
3 changed files with 16 additions and 16 deletions
|
@ -78,7 +78,6 @@ pcode.null_ls_ensure_installed = {
|
|||
-- atau gunakan :MasonInstall
|
||||
pcode.dap_ensure_installed = {
|
||||
-- "python",
|
||||
"codelldb",
|
||||
}
|
||||
|
||||
-- https://github.com/folke/which-key.nvim
|
||||
|
|
|
@ -3,21 +3,21 @@ local M = {}
|
|||
-- local file_name_no_ext = vim.fn.expand("%:t:r")
|
||||
if pcode.active_cpp_config then
|
||||
M = {
|
||||
{
|
||||
"jay-babu/mason-nvim-dap.nvim",
|
||||
dependencies = {
|
||||
"mfussenegger/nvim-dap",
|
||||
},
|
||||
ft = "cpp",
|
||||
config = function()
|
||||
require("mason-nvim-dap").setup({
|
||||
automatic_installation = true,
|
||||
automatic_setup = true,
|
||||
handlers = {},
|
||||
ensure_installed = { "codelldb" },
|
||||
})
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "jay-babu/mason-nvim-dap.nvim",
|
||||
-- dependencies = {
|
||||
-- "mfussenegger/nvim-dap",
|
||||
-- },
|
||||
-- ft = "cpp",
|
||||
-- config = function()
|
||||
-- require("mason-nvim-dap").setup({
|
||||
-- automatic_installation = true,
|
||||
-- automatic_setup = true,
|
||||
-- handlers = {},
|
||||
-- ensure_installed = { "codelldb" },
|
||||
-- })
|
||||
-- end,
|
||||
-- },
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
event = "VeryLazy",
|
||||
|
|
|
@ -79,6 +79,7 @@ if pcode.active_cpp_config then
|
|||
table.insert(pcode.treesitter_ensure_installed, "cpp")
|
||||
table.insert(pcode.mason_ensure_installed, "clangd")
|
||||
table.insert(pcode.null_ls_ensure_installed, "clang_format")
|
||||
table.insert(pcode.dap_ensure_installed, "codelldb")
|
||||
pcode.nvim_dap = true
|
||||
end
|
||||
return {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue