From 9b30ceed955a6b57db78a4b14b5361b4a1f77b58 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Fri, 12 Sep 2025 18:15:10 -0500 Subject: [PATCH] fix(health): cp nvim health checkup --- lua/cp/health.lua | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/lua/cp/health.lua b/lua/cp/health.lua index 150700f..464ee8d 100644 --- a/lua/cp/health.lua +++ b/lua/cp/health.lua @@ -23,7 +23,7 @@ end local function check_python_env() local plugin_path = debug.getinfo(1, "S").source:sub(2) - plugin_path = vim.fn.fnamemodify(plugin_path, ":h:h:h:h") + plugin_path = vim.fn.fnamemodify(plugin_path, ":h:h:h") local venv_dir = plugin_path .. "/.venv" if vim.fn.isdirectory(venv_dir) == 1 then @@ -35,7 +35,7 @@ end local function check_scrapers() local plugin_path = debug.getinfo(1, "S").source:sub(2) - plugin_path = vim.fn.fnamemodify(plugin_path, ":h:h:h:h") + plugin_path = vim.fn.fnamemodify(plugin_path, ":h:h:h") local scrapers = { "atcoder.py", "codeforces.py", "cses.py" } for _, scraper in ipairs(scrapers) do @@ -59,24 +59,6 @@ local function check_luasnip() end end -local function check_directories() - local cwd = vim.fn.getcwd() - local build_dir = cwd .. "/build" - local io_dir = cwd .. "/io" - - if vim.fn.isdirectory(build_dir) == 1 then - vim.health.ok("Build directory exists: " .. build_dir) - else - vim.health.info("Build directory will be created when needed") - end - - if vim.fn.isdirectory(io_dir) == 1 then - vim.health.ok("IO directory exists: " .. io_dir) - else - vim.health.info("IO directory will be created when needed") - end -end - local function check_config() local cp = require("cp") if cp.is_initialized() then @@ -100,7 +82,6 @@ function M.check() check_python_env() check_scrapers() check_luasnip() - check_directories() check_config() end