Skip to content

Commit

Permalink
fix: fixed a lot of misspelled words and other grammatical errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matt authored and server committed Dec 9, 2024
1 parent c63ec48 commit b46a81f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lua/care/menu/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Menu.draw_docs = require("care.utils.async").throttle(function(self, entry)
entry.source.source:resolve_item(entry.completion_item, function(resolved_item)
entry.completion_item = resolved_item
-- TODO: perhaps better solution for this?, e.g. cancel callback?
-- Required to not run into issues when closing immediatelly after selection
-- Required to not run into issues when closing immediately after selection
if not self.menu_window:is_open() then
return
end
Expand Down
4 changes: 2 additions & 2 deletions lua/care/types/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
--- Values of up to about 1000 should also not cause performance issue.
---@field max_view_entries? integer

--- # Ui Configuration
--- # UI Configuration
--- This is used to configure the whole UI of care.
---@class care.config.ui
--- Configuration of the completion menu of care.nvim
Expand Down Expand Up @@ -122,7 +122,7 @@
--- alignment of each section.
---
--- For example you want to have the label of an entry in a red highlight and an
--- icon in a entry-kind specific color left aligned first and then the source of
--- icon in an entry-kind specific color left aligned first and then the source of
--- the entry right aligned in blue. You could do that like this:
---
--- ```lua
Expand Down
2 changes: 1 addition & 1 deletion lua/care/types/context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
--- The complete line on which the cursor was when the context was created.
---@field line string
--- The line before the cursor. This is mostly important to be correct in insert
--- mode. In normal mode the character on which the cursor is is not included.
--- mode. In normal mode the character on which the cursor is not included.
---@field line_before_cursor string

--- A cursor position
Expand Down
2 changes: 1 addition & 1 deletion lua/care/types/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
--- the last time. This is used to determine when to reopen the completion window.
---@field last_opened_at integer
--- Boolean to indicate if care is currently completing. This is used to avoid
--- compmleting and sorting on the same keystroke.
--- completing and sorting on the same keystroke.
---@field completing boolean
6 changes: 3 additions & 3 deletions lua/care/types/preset_utils.lua
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
--- This module contains lower level utilities for the presets and the preset components.
---@class care.preset_utils
--- This function can be used to get a function to label the entries with shortscuts as [described
--- This function can be used to get a function to label the entries with shortcuts as [described
--- here](/configuration_recipes#labels-and-shortcuts).
---@field label_entries fun(labels: string[]): fun(_,data: care.format_data): string
--- With this function you can get a color if the entry is a color and the hex color code is available in the
--- completion item.
---@field get_color fun(entry: care.entry): string?
--- This function allows to get a highlight group for a certain hex color code. This is useful because like that the
--- user doesn't have to constantly create new highlight groups to apply a hex value to a certain thing. The
--- highlight group will have the hex value as foregroung color.
--- highlight group will have the hex value as foreground color.
---@field get_highlight_for_hex fun(hex: string): string
--- With this function you can get the kind highlight group for a specific entry. The style can either be foreground
--- or blended.
---@field kind_highlight fun(entry: care.entry, style: "fg"|"blended"): string
--- Gets the label detail if provided by the language serve.
--- Gets the label detail if provided by the language server.
--- This is equivalent to the `vim_item.menu` from nvim-cmp
---@field get_label_detail fun(entry: care.entry): string
2 changes: 1 addition & 1 deletion lua/care/types/source.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- The sources are used to get get completions for care.nvim.
--- The sources are used to get completions for care.nvim.
---@class care.source
--- The `name` field is used for configuring the source. It should just contain characters, `_`, and `-`.
---@field name string
Expand Down
2 changes: 1 addition & 1 deletion lua/care/utils/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local utils = {}

--- Gets lenght of longest string of an array
--- Gets length of longest string of an array
---@param lines table<string>
---@return number
function utils.longest(lines)
Expand Down

0 comments on commit b46a81f

Please sign in to comment.