From e3ebfb7a5b085eaa8208dd973186c10ecccedc86 Mon Sep 17 00:00:00 2001 From: "asep.komarudin" Date: Fri, 28 Jun 2024 21:12:50 +0700 Subject: [PATCH] add: auto on dap if c++ true --- lua/plugins/dap.lua | 2 +- lua/plugins/themes/_globalvar.lua | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) 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")