Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 64e37e4

Browse files
committed
fix: Update health wording; strip trailing colon to match nvim format
1 parent b63d861 commit 64e37e4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lua/completion/chain_completion.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ function M.checkHealth(complete_items_map)
105105
else
106106
local ins = require 'completion.source.ins_complete'
107107
if ins.checkHealth(complete_source.mode) then
108-
health_error(complete_source.mode.." is not a valid insert complete mode")
108+
health_error(complete_source.mode.." is not a valid insert completion mode")
109109
end
110110
end
111111
end
112112
end
113113
end
114114
if not error then
115-
health_ok("all completion source are valid")
115+
health_ok("all completion sources are valid")
116116
end
117117
end
118118

lua/completion/health.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ end
1717
local checkSnippetSource = function()
1818
local snippet_source = opt.get_option('enable_snippet')
1919
if snippet_source == nil then
20-
health_info("You haven't setup any snippet source.")
20+
health_info("You haven't set up any snippet source")
2121
else
2222
local rtp = string.lower(api.nvim_get_option("rtp"))
2323
local unknown_snippet_source = true
@@ -34,7 +34,7 @@ local checkSnippetSource = function()
3434
if string.match(rtp, ".*"..v..".*") then
3535
health_ok("You are using "..k.." as your snippet source")
3636
else
37-
health_error(k.." is not available! Check if you install "..k.." correctly.")
37+
health_error(k.." is not available! Check if you installed "..k.." correctly")
3838
end
3939
break
4040
end
@@ -49,7 +49,7 @@ end
4949
function M.checkHealth()
5050
health_start("general")
5151
if vim.tbl_filter == nil then
52-
health_error("vim.tbl_filter is not found!", {'consider recompile neovim from the latest master branch'})
52+
health_error("vim.tbl_filter is not found!", {'consider recompiling neovim from the latest master branch'})
5353
else
5454
health_ok("neovim version is supported")
5555
end

0 commit comments

Comments
 (0)