fix: changed formatting and defaults for c/c++

This commit is contained in:
DarthMooMancer
2025-09-01 00:36:35 -04:00
parent 0cc4374865
commit bc825895ac
2 changed files with 36 additions and 25 deletions
+2 -3
View File
@@ -1,15 +1,14 @@
local M = {}
M.opts = {}
function M.setup(opts)
M.opts = vim.tbl_deep_extend("force", {}, require("Polydev.configs").get("terminal"), opts or {})
end
function exists(path)
function M.exists(path)
return (io.open(path,"r") ~= nil)
end
---@return string
function M.get_project_root()
local plugin_dir = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":h:h:h")