diff --git a/docs/config.md b/docs/config.md index 26b8142..d30eac7 100644 --- a/docs/config.md +++ b/docs/config.md @@ -204,7 +204,7 @@ The default value is 200 which will open the menu instantly in most cases so the isn't much need for a lower value. Values of up to about 1000 should also not cause performance issue. -# Ui Configuration +# UI Configuration This is used to configure the whole UI of care. # `care.config.ui` @@ -272,7 +272,7 @@ sections which are represented by tables and can have a different alignment each. This is specified with another field which takes a table with the 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 format_entry = function(entry) diff --git a/docs/dev/context.md b/docs/dev/context.md index 4a58985..d99a926 100644 --- a/docs/dev/context.md +++ b/docs/dev/context.md @@ -68,7 +68,7 @@ The complete line on which the cursor was when the context was created. `context.line_before_cursor 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. A cursor position # `care.context.cursor` diff --git a/docs/dev/core.md b/docs/dev/core.md index 330cca5..2ad1bed 100644 --- a/docs/dev/core.md +++ b/docs/dev/core.md @@ -85,4 +85,4 @@ the last time. This is used to determine when to reopen the completion window. `core.completing boolean` Boolean to indicate if care is currently completing. This is used to avoid -compmleting and sorting on the same keystroke. \ No newline at end of file +completing and sorting on the same keystroke. \ No newline at end of file diff --git a/docs/dev/source.md b/docs/dev/source.md index 0ae0615..a9cc404 100644 --- a/docs/dev/source.md +++ b/docs/dev/source.md @@ -5,7 +5,7 @@ description: Type description of care.source # Source -The sources are used to get get completions for care.nvim. +The sources are used to get completions for care.nvim. # `care.source` # Methods diff --git a/docs/preset_utils.md b/docs/preset_utils.md index 7d08e37..16ee3c0 100644 --- a/docs/preset_utils.md +++ b/docs/preset_utils.md @@ -13,7 +13,7 @@ This module contains lower level utilities for the presets and the preset compon ## Label Entries `preset_utils.label_entries(labels: string[]): fun(_,data: care.format_data): string` -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). ## Get Color @@ -29,7 +29,7 @@ completion item. 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. ## Kind Highlight `preset_utils.kind_highlight(entry: care.entry, style: "fg"|"blended"): string` @@ -44,5 +44,5 @@ or blended. See [care.entry](/dev/entry) -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 \ No newline at end of file