too many things

This commit is contained in:
fbachus
2025-09-02 03:32:47 +02:00
parent c26d3a64b0
commit f19e8a00c7
81 changed files with 2724 additions and 1549 deletions

View File

@@ -0,0 +1,22 @@
-- this file exists so that neovim listens for server automatically
-- when running in godot folder
--
-- paths to check for project.godot file
local paths_to_check = { "/", "/../" }
local is_godot_project = false
local godot_project_path = ""
local cwd = vim.fn.getcwd()
-- iterate over paths and check
for key, value in pairs(paths_to_check) do
if vim.uv.fs_stat(cwd .. value .. "project.godot") then
is_godot_project = true
godot_project_path = cwd .. value
break
end
end
-- check if server is already running in godot project path
local is_server_running = vim.uv.fs_stat(godot_project_path .. "/server.pipe")
-- start server, if not already running
if is_godot_project and not is_server_running then vim.fn.serverstart(godot_project_path .. "/server.pipe") end