From 8b28f988779d86eaad28f8057b6c0187f35c191c Mon Sep 17 00:00:00 2001 From: ray-x Date: Sun, 24 Mar 2024 10:27:22 +1100 Subject: [PATCH] add nvim-nio as a dependency --- README.md | 2 ++ playground/init_lazy.lua | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d2c623..33a1ec2 100644 --- a/README.md +++ b/README.md @@ -711,6 +711,7 @@ The plugin will setup debugger. But you need to install - dap ui (optional) - 'rcarriga/nvim-dap-ui' + - 'nvim-neotest/nvim-nio' - dap virtual text (optional) - 'theHamsta/nvim-dap-virtual-text' @@ -722,6 +723,7 @@ Sample vimrc for DAP ```viml Plug 'mfussenegger/nvim-dap' Plug 'rcarriga/nvim-dap-ui' +Plug 'nvim-neotest/nvim-nio' Plug 'theHamsta/nvim-dap-virtual-text' " Plug 'nvim-telescope/telescope-dap.nvim' ``` diff --git a/playground/init_lazy.lua b/playground/init_lazy.lua index 9e0db3a..c81e9aa 100644 --- a/playground/init_lazy.lua +++ b/playground/init_lazy.lua @@ -4,6 +4,7 @@ vim.cmd([[set runtimepath=$VIMRUNTIME]]) local tmpdir = vim.loop.os_tmpdir() .. '/nvim' packpath = tmpdir .. '/lazy' vim.cmd([[set packpath=]] .. packpath) +-- print(packpath) local package_root = packpath local plugin_folder = function() @@ -48,6 +49,7 @@ local function load_plugins() dependencies = { 'mfussenegger/nvim-dap', -- Debug Adapter Protocol 'rcarriga/nvim-dap-ui', + 'nvim-neotest/nvim-nio', 'theHamsta/nvim-dap-virtual-text', 'ray-x/guihua.lua', }, @@ -56,9 +58,9 @@ local function load_plugins() verbose = true, -- log_path = '~/tmp/go.log', lsp_cfg = true, - goimports = 'gopls', - gofmt = 'gopls', - max_line_len = 80, + goimports = 'gopls', + gofmt = 'gopls', + max_line_len = 80, }, }, }