Setup with lazyvim (incl django launcher)
pirm-in opened this issue · comments
Pirmin Schneider commented
Hello there! I'm fairly new to neovim. I am using lazyvim, and i have configuration for nvim-dap-python like this
{
"mfussenegger/nvim-dap-python",
dependencies = { "mfussenegger/nvim-dap" },
config = function(plugin, opts)
require("dap-python").setup( vim.fn.getcwd() .. "/.venv/bin/python")
end,
opts = function(_, opts)
table.insert(require("dap").configurations.python, {
type = "python",
request = "launch",
name = "Django",
program = vim.fn.getcwd() .. "/manage.py",
args = { "runserver", "--noreload" },
})
end,
},
Now this worked until recently. I am not quite sure what exactly changed, but i am now getting an error message.
bad argument #1 to 'insert' (table expected, got nil)
Not sure if this is a plain lazy issue, but since there is already #97 i figured it might be good to find a working solution here.
edit: the above is working. i forgot that i had removed debugpy. After installing it, it works again.