add: auto on dap if c++ true

This commit is contained in:
asep.komarudin 2024-06-28 21:12:50 +07:00
parent d3b57e0fa6
commit e3ebfb7a5b
2 changed files with 9 additions and 9 deletions

View file

@ -1,5 +1,5 @@
local M = {}
if pcode.nvim_dap then
if pcode.nvim_dap or pcode.active_cpp_config then
M = {
{
"rcarriga/nvim-dap-ui",

View file

@ -101,14 +101,14 @@ if pcode.active_python_config then
end
end
-- run if cpp config true
if pcode.active_cpp_config then
-- table.insert(pcode.treesitter_ensure_installed, "cpp")
-- table.insert(pcode.treesitter_ensure_installed, "c")
-- 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
-- if pcode.active_cpp_config then
-- table.insert(pcode.treesitter_ensure_installed, "cpp")
-- table.insert(pcode.treesitter_ensure_installed, "c")
-- 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
-- run if java config true
-- if pcode.active_java_config.active and pcode.active_java_config.use_nvim_jdtls then
-- table.insert(pcode.treesitter_ensure_installed, "java")