fix: python dap linux and windows

This commit is contained in:
asep.komarudin 2024-06-22 13:43:18 +07:00
parent af1dd1aa00
commit fa07b44ecf
2 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,7 @@ if pcode.active_python_config then
{ {
"mfussenegger/nvim-dap", "mfussenegger/nvim-dap",
event = "BufReadPre", event = "BufReadPre",
enabled = vim.fn.has("win32") == 1,
dependencies = { dependencies = {
"rcarriga/nvim-dap-ui", "rcarriga/nvim-dap-ui",
"theHamsta/nvim-dap-virtual-text", "theHamsta/nvim-dap-virtual-text",

View file

@ -70,5 +70,8 @@ if pcode.active_python_config then
table.insert(pcode.mason_ensure_installed, "pyright") table.insert(pcode.mason_ensure_installed, "pyright")
table.insert(pcode.null_ls_ensure_installed, "flake8") table.insert(pcode.null_ls_ensure_installed, "flake8")
table.insert(pcode.null_ls_ensure_installed, "black") table.insert(pcode.null_ls_ensure_installed, "black")
if vim.fn.has("win32") == 0 then
pcode.nvim_dap = true
end
end end
return {} return {}