File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,20 +101,8 @@ return {
101101 dependencies = " mfussenegger/nvim-dap" ,
102102 ft = " python" , -- NOTE: ft: lazy-load on filetype
103103 config = function (_ , opts )
104- local path
105-
106- local mason_registry_avail , mason_registry = pcall (require , " mason-registry" )
107- if mason_registry_avail and mason_registry .is_installed " debugpy" then
108- local debugpy_path = vim .fn .expand " $MASON/packages/debugpy"
109- if vim .fn .has " win32" == 1 then
110- path = debugpy_path .. " /venv/Scripts/python"
111- else
112- path = debugpy_path .. " /venv/bin/python"
113- end
114- else
115- path = vim .fn .exepath " debugpy-adapter"
116- if path == " " then path = vim .fn .exepath " python" end
117- end
104+ local path = vim .fn .exepath " debugpy-adapter"
105+ if path == " " then path = vim .fn .exepath " python" end
118106 require (" dap-python" ).setup (path , opts )
119107 end ,
120108 },
You can’t perform that action at this time.
0 commit comments