diff --git a/lua/plugins/dap.lua b/lua/plugins/dap.lua index a3efdac..51b0bfe 100644 --- a/lua/plugins/dap.lua +++ b/lua/plugins/dap.lua @@ -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", diff --git a/lua/plugins/themes/_globalvar.lua b/lua/plugins/themes/_globalvar.lua index c0b8339..e6960c6 100644 --- a/lua/plugins/themes/_globalvar.lua +++ b/lua/plugins/themes/_globalvar.lua @@ -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")