refactor(nlua): cleanup
This commit is contained in:
@ -1,24 +1,5 @@
|
|||||||
local Util = require("lazyvim.util")
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
|
|
||||||
launch = function(host, port)
|
|
||||||
if vim.g.nlua then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
vim.o.cmdheight = 10
|
|
||||||
local osv = require("osv")
|
|
||||||
osv.launch({
|
|
||||||
port = port,
|
|
||||||
host = host,
|
|
||||||
args = { "--cmd", "lua vim.g.nlua = true", "--cmd", "set cmdheight=10" },
|
|
||||||
})
|
|
||||||
vim.defer_fn(function()
|
|
||||||
vim.cmd([[luafile %]])
|
|
||||||
end, 2000)
|
|
||||||
end,
|
|
||||||
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{
|
{
|
||||||
"jbyuki/one-small-step-for-vimkind",
|
"jbyuki/one-small-step-for-vimkind",
|
||||||
|
Reference in New Issue
Block a user