add nvim-nio as a dependency

pull/429/merge
ray-x 2 months ago
parent fad1b6fcd8
commit 8b28f98877

@ -711,6 +711,7 @@ The plugin will setup debugger. But you need to install
- dap ui (optional) - dap ui (optional)
- 'rcarriga/nvim-dap-ui' - 'rcarriga/nvim-dap-ui'
- 'nvim-neotest/nvim-nio'
- dap virtual text (optional) - dap virtual text (optional)
- 'theHamsta/nvim-dap-virtual-text' - 'theHamsta/nvim-dap-virtual-text'
@ -722,6 +723,7 @@ Sample vimrc for DAP
```viml ```viml
Plug 'mfussenegger/nvim-dap' Plug 'mfussenegger/nvim-dap'
Plug 'rcarriga/nvim-dap-ui' Plug 'rcarriga/nvim-dap-ui'
Plug 'nvim-neotest/nvim-nio'
Plug 'theHamsta/nvim-dap-virtual-text' Plug 'theHamsta/nvim-dap-virtual-text'
" Plug 'nvim-telescope/telescope-dap.nvim' " Plug 'nvim-telescope/telescope-dap.nvim'
``` ```

@ -4,6 +4,7 @@ vim.cmd([[set runtimepath=$VIMRUNTIME]])
local tmpdir = vim.loop.os_tmpdir() .. '/nvim' local tmpdir = vim.loop.os_tmpdir() .. '/nvim'
packpath = tmpdir .. '/lazy' packpath = tmpdir .. '/lazy'
vim.cmd([[set packpath=]] .. packpath) vim.cmd([[set packpath=]] .. packpath)
-- print(packpath)
local package_root = packpath local package_root = packpath
local plugin_folder = function() local plugin_folder = function()
@ -48,6 +49,7 @@ local function load_plugins()
dependencies = { dependencies = {
'mfussenegger/nvim-dap', -- Debug Adapter Protocol 'mfussenegger/nvim-dap', -- Debug Adapter Protocol
'rcarriga/nvim-dap-ui', 'rcarriga/nvim-dap-ui',
'nvim-neotest/nvim-nio',
'theHamsta/nvim-dap-virtual-text', 'theHamsta/nvim-dap-virtual-text',
'ray-x/guihua.lua', 'ray-x/guihua.lua',
}, },
@ -56,9 +58,9 @@ local function load_plugins()
verbose = true, verbose = true,
-- log_path = '~/tmp/go.log', -- log_path = '~/tmp/go.log',
lsp_cfg = true, lsp_cfg = true,
goimports = 'gopls', goimports = 'gopls',
gofmt = 'gopls', gofmt = 'gopls',
max_line_len = 80, max_line_len = 80,
}, },
}, },
} }

Loading…
Cancel
Save