diff --git a/lua/plugins/python.lua b/lua/plugins/python.lua index ec51088..f4619b6 100644 --- a/lua/plugins/python.lua +++ b/lua/plugins/python.lua @@ -4,6 +4,7 @@ if pcode.active_python_config then { "mfussenegger/nvim-dap", event = "BufReadPre", + enabled = vim.fn.has("win32") == 1, dependencies = { "rcarriga/nvim-dap-ui", "theHamsta/nvim-dap-virtual-text", diff --git a/lua/plugins/themes/_globalvar.lua b/lua/plugins/themes/_globalvar.lua index 0297f2c..ecca80a 100644 --- a/lua/plugins/themes/_globalvar.lua +++ b/lua/plugins/themes/_globalvar.lua @@ -70,5 +70,8 @@ if pcode.active_python_config then table.insert(pcode.mason_ensure_installed, "pyright") table.insert(pcode.null_ls_ensure_installed, "flake8") table.insert(pcode.null_ls_ensure_installed, "black") + if vim.fn.has("win32") == 0 then + pcode.nvim_dap = true + end end return {}