master #1

Open
oli wants to merge 912 commits from master into lua
Showing only changes of commit f603d8af2e - Show all commits

View File

@@ -63,11 +63,10 @@ return {
dap.listeners.before.event_terminated.dapui_config = function() dapui.close() end
dap.listeners.before.event_exited.dapui_config = function() dapui.close() end
local path = require('mason-registry').get_package('debugpy'):get_install_path()
if vim.loop.os_uname().sysname:find('Windows') then
require('dap-python').setup(path .. 'dap-python' .. 'python')
if vim.fn.system('uname'):find('Windows') then
require('dap-python').setup('python')
else
require('dap-python').setup(path .. '/venv/bin/python')
require('dap-python').setup('/venv/bin/python')
end
-- CPP
@@ -75,7 +74,7 @@ return {
type = 'server',
port = '${port}',
executable = {
command = require('mason-core.path').bin_prefix('codelldb'),
command = 'codelldb',
args = { '--port', '${port}' },
-- On windows you may have to uncomment this:
@@ -92,7 +91,7 @@ return {
dap.adapters.lldb = {
type = 'executable',
command = function()
if vim.loop.os_uname().sysname == 'Linux' then
if vim.fn.system('uname') == 'Linux' then
return 'lldb-vscode'
else
return os.getenv('SCOOP') .. '/apps/llvm/current/bin/lldb-vscode.exe'