5MVRBPXU6D5UN7IGEGOGE3OQ44RWVIRYZCZPB7KWQGKRBRK6GBLQC NJK4RXW2F5EFM7PDLS2YFCQHR5YALN4BM3YJDZ4RFEWFRY5RUL6QC TCOKCTUAKA3VY42FJYXVIFI2ELCRP2ICWCGUYH4PKFJ4ESEDBT3AC 2ZWNRAAEWUQBDML63NQVIAO62UHOYIQTQQP7MD52KS3WZYQIX7ZQC KXYLAJ5WZIXV5FQ4TU3IPHCO2YRKQBAZBW27LOA5EVWI2OLVPIIAC GDI3HOMTZYAE53VRPV5ITRA5WPTPNZELJHK3TM5MCICMH6MOECLAC AH6HSGEDTDCT77KUZXFSBB3U22PORVZ2RFGEN2DHYJNUHG6UWDPAC RXJH46XLP6AFSIZZD4WEQA5A5YZLKHZ54ZUGCRH7TRAOH2Z4Q2VQC 526CRD2QD6NF6N6PQUNWZT6UUGNLMC25UYNIO7ZFUCPQCUALYN4QC 5G7WRBMWKG6DMCOHE6WQHTYZACUHO2UPBZRWN72CFH7P45NN5E7QC local dap = require('dap')
local dap = require('dap')dap.adapters.codelldb = {type = 'executable',command = 'codelldb',}dap.adapters["pwa-node"] = {type = "server",host = "localhost",port = "''${port}",executable = {command = "js-debug",args = {"''${port}"}},processId = require("dap.utils").pick_process,}dap.configurations.rust = {{name = 'Launch file',type = 'codelldb',request = 'launch',program = function()return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')end,cwd = vim.fn.getcwd(),stopOnEntry = false,}}dap.configurations.javascript = {{type = "pwa-node",request = "launch",name = "Launch File",program = "''${file}",cwd = "''${workspaceFolder}",}}
dap.adapters.codelldb = {type = 'executable',command = 'codelldb',}
dap.configurations.typescript = {{type = "pwa-node",request = "launch",name = "Launch File",program = "''${workspaceFolder}/../node_modules/astro/astro.js",args = { "dev" },cwd = "''${workspaceFolder}",rootPath = "''${workspaceFolder}",sourceMaps = true,console = "integratedTerminal",outFiles = {"''${workspaceFolder}/dist/**/*.js","''${workspaceFolder}/.astro/**/*.ts"},resolveSourceMapLocations = {"''${workspaceFolder}/dist/**/*.js","''${workspaceFolder}/.astro/**/*.ts"},skipFiles = {"<node_internals>/**"}}}
dap.configurations.rust = {{name = 'Launch file',type = 'codelldb',request = 'launch',program = function()return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')end,cwd = vim.fn.getcwd(),stopOnEntry = false,},}
dap.configurations.astro = dap.configurations.typescript
init_options = {plugins = mkLuaInline ''{{name = "@vue/typescript-plugin",location = vim.fn.exepath("vue-language-server"),languages = { "vue" },}}'';};
# init_options = {# plugins = mkLuaInline ''# {# {# name = "@vue/typescript-plugin",# location = vim.fn.exepath("vue-language-server"),# languages = { "vue" },# }# }# '';# };
# debugging{key = "<leader>db";mode = "n";action = ":lua require('dap').toggle_breakpoint()<CR>";desc = "toggle breakpoint";}{key = "<leader>dB";mode = "n";action = ":lua require('dap').toggle_breakpoint(vim.fn.input('Breakpoint condition: '))<CR>";desc = "run last";}{key = "<leader>dc";mode = "n";action = ":lua require('dap').continue()<CR>";desc = "continue";}{key = "<leader>du";mode = "n";action = ":lua require('dapui').toggle()<CR>";desc = "open/close debugger ui";}{key = "<leader>do";mode = "n";action = ":lua require('dap').step_over()<CR>";desc = "step over";}{key = "<leader>di";mode = "n";action = ":lua require('dap').step_into()<CR>";desc = "step into";}{key = "<leader>dO";mode = "n";action = ":lua require('dap').step_out()<CR>";desc = "step out";}{key = "<leader>dp";mode = "n";action = ":lua require('dap').step_back()<CR>";desc = "step back";}{key = "<leader>dr";mode = "n";action = ":lua require('dap').run_last()<CR>";desc = "restart last session";}