Add Linux support for Godot DAP
This commit is contained in:
parent
3ebb2a3caa
commit
c5a3dbe102
16
init.lua
16
init.lua
|
@ -515,11 +515,17 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
-- Godot's LSP - Requires Godot to be running
|
-- Godot's LSP - Requires Godot to be running
|
||||||
require('lspconfig')['gdscript'].setup {
|
if vim.fn.has 'win32' == 1 then
|
||||||
-- cmd = vim.lsp.rpc.connect('127.0.0.1', 6005),
|
require('lspconfig')['gdscript'].setup {
|
||||||
cmd = { 'ncat', '127.0.0.1', '6005' },
|
cmd = { 'ncat', '127.0.0.1', '6005' },
|
||||||
name = 'godot',
|
name = 'godot',
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
require('lspconfig')['gdscript'].setup {
|
||||||
|
cmd = vim.lsp.rpc.connect('127.0.0.1', 6005),
|
||||||
|
name = 'godot',
|
||||||
|
}
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue