aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/kickstart/health.lua
diff options
context:
space:
mode:
authorNicholas Moore <nicholasvmoore@gmail.com>2025-10-29 07:40:12 -0500
committerGitHub <noreply@github.com>2025-10-29 07:40:12 -0500
commit3a3666a08b47121fb84b7b5f8d9514941be34760 (patch)
treed0e0b9ad67cd89478776e8d0118037f780504ac4 /nvim/lua/kickstart/health.lua
parent45f088bb6c322ec6b9cfe2b07ff3230b20114280 (diff)
parent24019c96aac25f5bc71f464a175905bed500d14e (diff)
Merge pull request #1 from nicholasvmoore/feature/refactoring
Feature/refactoring
Diffstat (limited to 'nvim/lua/kickstart/health.lua')
-rw-r--r--nvim/lua/kickstart/health.lua52
1 files changed, 0 insertions, 52 deletions
diff --git a/nvim/lua/kickstart/health.lua b/nvim/lua/kickstart/health.lua
deleted file mode 100644
index b59d086..0000000
--- a/nvim/lua/kickstart/health.lua
+++ /dev/null
@@ -1,52 +0,0 @@
---[[
---
--- This file is not required for your own configuration,
--- but helps people determine if their system is setup correctly.
---
---]]
-
-local check_version = function()
- local verstr = tostring(vim.version())
- if not vim.version.ge then
- vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
- return
- end
-
- if vim.version.ge(vim.version(), '0.10-dev') then
- vim.health.ok(string.format("Neovim version is: '%s'", verstr))
- else
- vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
- end
-end
-
-local check_external_reqs = function()
- -- Basic utils: `git`, `make`, `unzip`
- for _, exe in ipairs { 'git', 'make', 'unzip', 'rg' } do
- local is_executable = vim.fn.executable(exe) == 1
- if is_executable then
- vim.health.ok(string.format("Found executable: '%s'", exe))
- else
- vim.health.warn(string.format("Could not find executable: '%s'", exe))
- end
- end
-
- return true
-end
-
-return {
- check = function()
- vim.health.start 'kickstart.nvim'
-
- vim.health.info [[NOTE: Not every warning is a 'must-fix' in `:checkhealth`
-
- Fix only warnings for plugins and languages you intend to use.
- Mason will give warnings for languages that are not installed.
- You do not need to install, unless you want to use those languages!]]
-
- local uv = vim.uv or vim.loop
- vim.health.info('System Information: ' .. vim.inspect(uv.os_uname()))
-
- check_version()
- check_external_reqs()
- end,
-}