diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-04 08:44:50 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-06 16:43:16 +0200 |
| commit | 0bc002288b984d8ec8123c135456570c78a22da3 (patch) | |
| tree | 020ed3f6a7f28a081687a3e46ea190e3aa724f7c /.config/nvim/plugin/50-dap.lua | |
| download | dotfiles-0bc002288b984d8ec8123c135456570c78a22da3.tar.gz dotfiles-0bc002288b984d8ec8123c135456570c78a22da3.zip | |
feat: initial setup
- `dotfiles` (this project's CLI)
- foot configuration
- tmux configuration
- bash configuration
- nvim (as a git submodule) + configuration
- ranger configuration
- fzf configuration
- KDE global shortcuts
- Other miscellaneous dependencies
Diffstat (limited to '.config/nvim/plugin/50-dap.lua')
| -rw-r--r-- | .config/nvim/plugin/50-dap.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.config/nvim/plugin/50-dap.lua b/.config/nvim/plugin/50-dap.lua new file mode 100644 index 0000000..683984c --- /dev/null +++ b/.config/nvim/plugin/50-dap.lua @@ -0,0 +1,28 @@ +-- +-- DAP client/adapter configurations +-- + +vim.pack.add({ "https://github.com/mfussenegger/nvim-dap" }) -- DAP (Debug Adapter Protocol) client +local dap = require("dap") + +-- OSV configuration +vim.pack.add({ "https://github.com/jbyuki/one-small-step-for-vimkind" }) -- DAP adapter for Neovim Lua +local osv = require("osv") + +dap.configurations.lua = { + { + type = "nlua", + request = "attach", + name = "Attach to running Neovim instance", + }, +} +dap.adapters.nlua = function(callback, config) + callback({ type = "server", host = config.host or "127.0.0.1", port = config.port or 8086 }) +end +vim.api.nvim_create_user_command("OSVLaunch", function() + osv.launch({ port = 8086 }) +end, { desc = "Launch OSV server" }) +vim.api.nvim_create_user_command("OSVStatus", function() + vim.notify("OSV server running: " .. tostring(osv.is_running())) + vim.notify("OSV client attached: " .. tostring(osv.is_attached())) +end, { desc = "Show OSV status" }) |
