{"id":17111345,"url":"https://github.com/kdheepak/nvim-dap-julia","last_synced_at":"2025-06-26T09:09:04.123Z","repository":{"id":246617134,"uuid":"821657460","full_name":"kdheepak/nvim-dap-julia","owner":"kdheepak","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-08T03:16:58.000Z","size":16,"stargazers_count":17,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T19:11:32.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kdheepak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-29T04:36:31.000Z","updated_at":"2025-04-03T15:19:07.000Z","dependencies_parsed_at":"2024-11-07T18:15:38.463Z","dependency_job_id":null,"html_url":"https://github.com/kdheepak/nvim-dap-julia","commit_stats":null,"previous_names":["kdheepak/nvim-dap-julia"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kdheepak/nvim-dap-julia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdheepak%2Fnvim-dap-julia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdheepak%2Fnvim-dap-julia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdheepak%2Fnvim-dap-julia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdheepak%2Fnvim-dap-julia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kdheepak","download_url":"https://codeload.github.com/kdheepak/nvim-dap-julia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdheepak%2Fnvim-dap-julia/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262035215,"owners_count":23248361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T16:51:35.492Z","updated_at":"2025-06-26T09:09:04.105Z","avatar_url":"https://github.com/kdheepak.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nvim-dap-julia\n\n`nvim-dap-julia` is a Neovim plugin that integrates the\n[Julia language debugger](https://github.com/julia-vscode/DebugAdapter.jl) with the\n[Neovim Debug Adapter Protocol (DAP) client](https://github.com/mfussenegger/nvim-dap).\n\nhttps://github.com/kdheepak/nvim-dap-julia/assets/1813121/54019d2a-2843-436a-80f1-b9d2d7f126dd\n\n### Setup\n\nUsing [`lazy.nvim`](https://github.com/folke/lazy.nvim):\n\n```lua\nreturn {\n  {\n    \"mfussenegger/nvim-dap\",\n    dependencies = {\n      \"kdheepak/nvim-dap-julia\",\n      config = function()\n        require(\"nvim-dap-julia\").setup()\n      end,\n    },\n  },\n}\n```\n\nHere's the default configuration:\n\n```lua\nlocal nvim_dap_julia = require(\"nvim-dap-julia\")\nnvim_dap_julia.setup({\n  configurations = {\n    julia = {\n      {\n        type = \"julia\",\n        name = \"Debug julia executable\",\n        request = \"launch\",\n        program = \"${file}\",\n        projectDir = \"${workspaceFolder}\",\n        juliaEnv = \"${workspaceFolder}\",\n        exitAfterTaskReturns = false,\n        debugAutoInterpretAllModules = false,\n        stopOnEntry = true,\n        args = {},\n      },\n    },\n  },\n  adapters = {\n    julia = {\n      type = \"server\",\n      port = \"${port}\",\n      executable = {\n        command = \"julia\",\n        args = { \"--project=\" .. nvim_dap_julia.get_plugin_root(), nvim_dap_julia.get_debugger_script(), \"${port}\" },\n      },\n      options = {\n        max_retries = 100,\n      },\n    },\n  },\n\n})\n```\n\nIf you want to override a specific section, you can do that by passing the options to `setup({})`.\n\nFor example, if you want to override `juliaEnv` to allow the user to pick options, you can setup a\ncoroutine callback like so:\n\n```lua\n\nlocal juliaEnvCallback = function()\n  return coroutine.create(function(dap_run_co)\n    local items = {\n      [[ ${file}: Active filename ]],\n      [[ ${fileBasename}: The current file's basename ]],\n      [[ ${fileDirname}: The current file's dirname ]],\n      [[ ${relativeFile}: The current file relative to current working directory ]],\n      [[ ${workspaceFolder}: The current working directory of Neovim ]],\n      [[ ${workspaceFolderBasename}: The name of the folder opened in Neovim ]],\n    }\n    vim.ui.select(items, { label = \"juliaEnv\u003e \" }, function(choice)\n      coroutine.resume(dap_run_co, choice)\n    end)\n  end)\nend\n\nlocal nvim_dap_julia = require(\"nvim-dap-julia\")\nnvim_dap_julia.setup({\n  configurations = {\n    julia = {\n      juliaEnv = juliaEnvCallback\n    }\n  }\n})\n\n```\n\n### Usage\n\nTo start a debug session, use the following command:\n\n```vim\n:DapContinue\n```\n\nSet breakpoints in your Julia code by using the following command:\n\n```vim\n:DapToggleBreakpoint\n```\n\nControl the debugging session with the following commands:\n\n- `:DapContinue` - Continue execution.\n- `:DapStepOver` - Step over the current line.\n- `:DapStepInto` - Step into the current line.\n- `:DapStepOut` - Step out of the current function.\n- `:DapTerminate` - Terminate the debugging session.\n\n### Advanced Setup\n\nThis setup includes keyboard shortcuts, opens UI elements automatically, etc:\n\n```lua\nreturn {\n  {\n    \"mfussenegger/nvim-dap\",\n    dependencies = {\n      \"rcarriga/nvim-dap-ui\",\n      \"theHamsta/nvim-dap-virtual-text\",\n      \"nvim-neotest/nvim-nio\",\n      \"kdheepak/nvim-dap-julia\",\n    },\n    config = function()\n      local dap = require(\"dap\")\n      local ui = require(\"dapui\")\n\n      require(\"dapui\").setup()\n      require(\"nvim-dap-julia\").setup()\n\n      vim.keymap.set(\"n\", \"\u003cspace\u003eb\", dap.toggle_breakpoint)\n      vim.keymap.set(\"n\", \"\u003cspace\u003eB\", dap.run_to_cursor)\n\n      vim.keymap.set(\"n\", \"\u003cF1\u003e\", dap.continue)\n      vim.keymap.set(\"n\", \"\u003cF2\u003e\", dap.step_into)\n      vim.keymap.set(\"n\", \"\u003cF3\u003e\", dap.step_over)\n      vim.keymap.set(\"n\", \"\u003cF4\u003e\", dap.step_out)\n      vim.keymap.set(\"n\", \"\u003cF5\u003e\", dap.step_back)\n      vim.keymap.set(\"n\", \"\u003cF12\u003e\", dap.restart)\n\n      dap.listeners.before.attach.dapui_config = function()\n        ui.open()\n      end\n      dap.listeners.before.launch.dapui_config = function()\n        ui.open()\n      end\n      dap.listeners.before.event_terminated.dapui_config = function()\n        ui.close()\n      end\n      dap.listeners.before.event_exited.dapui_config = function()\n        ui.close()\n      end\n    end,\n  },\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdheepak%2Fnvim-dap-julia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdheepak%2Fnvim-dap-julia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdheepak%2Fnvim-dap-julia/lists"}