mirror of
https://github.com/kristoferssolo/lualine-harpoon.nvim.git
synced 2025-10-21 19:50:33 +00:00
feat(health): add check-health
This commit is contained in:
parent
7f9e2dc1e5
commit
97619e677c
28
lua/lualine-harpoon/health.lua
Normal file
28
lua/lualine-harpoon/health.lua
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
local M = {}
|
||||||
|
|
||||||
|
function M.check()
|
||||||
|
vim.health.start("lualine-harpoon")
|
||||||
|
|
||||||
|
local has_lualine = pcall(require, "lualine")
|
||||||
|
if has_lualine then
|
||||||
|
vim.health.ok("lualine is installed")
|
||||||
|
else
|
||||||
|
vim.health.error("lualine is not installed")
|
||||||
|
end
|
||||||
|
|
||||||
|
local has_harpoon = pcall(require, "harpoon")
|
||||||
|
if has_harpoon then
|
||||||
|
vim.health.ok("harpoon is installed")
|
||||||
|
else
|
||||||
|
vim.health.warn("harpoon is not installed - component will show empty")
|
||||||
|
end
|
||||||
|
|
||||||
|
local has_plenary = pcall(require, "plenary.path")
|
||||||
|
if has_plenary then
|
||||||
|
vim.health.ok("plenary.nvim is installed (recommended)")
|
||||||
|
else
|
||||||
|
vim.health.warn("plenary.nvim is not installed - path normalization disabled")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
Loading…
Reference in New Issue
Block a user