Merge pull request #19 from nbur4556/godot-server

Godot server
This commit is contained in:
Nick Burt 2026-04-28 21:46:49 -05:00 committed by GitHub
commit 72106efb1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -960,5 +960,11 @@ require('lazy').setup({
}, },
}) })
-- FIX: godot-server: should check if the server is already running first...
local gdprojectfilepath = vim.fn.getcwd() .. '/project.godot'
local isInGdDirectory = vim.fn.filereadable(gdprojectfilepath) == 1
if isInGdDirectory then vim.fn.serverstart '127.0.0.1:55432' end
-- The line beneath this is called `modeline`. See `:help modeline` -- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et -- vim: ts=2 sts=2 sw=2 et