diff --git a/lua/Polydev/lua.lua b/lua/Polydev/lua.lua index 00794bc..d1473d2 100644 --- a/lua/Polydev/lua.lua +++ b/lua/Polydev/lua.lua @@ -106,7 +106,7 @@ local M = {} return M ]]) - write_file(project_root .. "/" .. project_name .. ".polydev", "") + write_file(project_root .. "/" .. project_name .. ".polydev", "[[DO NOT REMOVE THIS FILE]]") vim.cmd("edit " .. project_root .. "/lua/" .. project_name .. "/init.lua") end) end diff --git a/lua/Polydev/rust.lua b/lua/Polydev/rust.lua index edfbe85..9e81cc3 100644 --- a/lua/Polydev/rust.lua +++ b/lua/Polydev/rust.lua @@ -104,7 +104,7 @@ end function M.get_project_root() local dir = vim.fn.expand("%:p:h") while dir ~= "/" do - if vim.fn.isdirectory(dir .. "/src") == 1 or vim.fn.filereadable(dir .. "/CMakeLists.txt") == 1 then + if vim.fn.isdirectory(dir .. "/src") == 1 then return dir end dir = vim.fn.fnamemodify(dir, ":h")