Skip to content

Commit c273707

Browse files
authored
Fix typos (#2135)
1 parent 5a11682 commit c273707

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lua/cmp/config/compare.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ compare.recently_used = setmetatable({
6666
end,
6767
})
6868

69-
---kind: Entires with smaller ordinal value of 'kind' will be ranked higher.
69+
---kind: Entries with smaller ordinal value of 'kind' will be ranked higher.
7070
---(see lsp.CompletionItemKind enum).
7171
---Exceptions are that Text(1) will be ranked the lowest, and snippets be the highest.
7272
---@type cmp.ComparatorFunction
@@ -106,7 +106,7 @@ compare.sort_text = function(entry1, entry2)
106106
return nil
107107
end
108108

109-
---length: Entires with shorter label length will be ranked higher.
109+
---length: Entries with shorter label length will be ranked higher.
110110
---@type cmp.ComparatorFunction
111111
compare.length = function(entry1, entry2)
112112
local diff = #entry1.completion_item.label - #entry2.completion_item.label

lua/cmp/core.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ core.confirm = function(self, e, option, callback)
399399
else
400400
vim.cmd([[silent! undojoin]])
401401
-- This logic must be used nvim_buf_set_text.
402-
-- If not used, the snippet engine's placeholder wil be broken.
402+
-- If not used, the snippet engine's placeholder will be broken.
403403
vim.api.nvim_buf_set_text(0, e.context.cursor.row - 1, e.offset - 1, ctx.cursor.row - 1, ctx.cursor.col - 1, {
404404
e.context.cursor_before_line:sub(e.offset),
405405
})

lua/cmp/utils/misc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ misc.rep = function(str_or_tbl, count)
4949
return rep
5050
end
5151

52-
---Return the valu is empty or not.
52+
---Return whether the value is empty or not.
5353
---@param v any
5454
---@return boolean
5555
misc.empty = function(v)

0 commit comments

Comments
 (0)