From e7f109e48c8c40a261493ee81ec9eb7e52eebda4 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 6 Aug 2024 17:51:49 +0300 Subject: fix(nvim): lazy.nvim crashing due to nvim-dap having no setup function --- .config/nvim/lua/custom/plugins/nvim-dap.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/custom/plugins/nvim-dap.lua b/.config/nvim/lua/custom/plugins/nvim-dap.lua index 0dd44c5..06b9589 100644 --- a/.config/nvim/lua/custom/plugins/nvim-dap.lua +++ b/.config/nvim/lua/custom/plugins/nvim-dap.lua @@ -1,6 +1,10 @@ return { 'mfussenegger/nvim-dap', dependencies = { 'williamboman/mason.nvim' }, + -- NOTE:nvim-dap has no setup function + -- if there is just opts, lazy will attempt to call setup which causes an error + -- Having an empty config function makes lazy not call setup which fixes the issue + config = function() end, opts = function() local dap = require('dap') -- cgit v1.3.1