Add Linux support for Godot DAP

This commit is contained in:
Eric Olerud 2024-04-20 18:34:49 -04:00
parent 3ebb2a3caa
commit c5a3dbe102
1 changed files with 11 additions and 5 deletions

View File

@ -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,
}, },