Skip to content

Commit

Permalink
chore: autoformat with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 committed Jun 8, 2024
1 parent 5cfed8b commit 7db25da
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lua/neocomplete/types/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
--- The border of the documentation view
---@field border string|string[]|string[][]
--- The icons used for the different completion item types
---@alias neocomplete.config.ui.type_icons table<string, string>
---@alias neocomplete.config.ui.type_icons table<string, string>
2 changes: 1 addition & 1 deletion lua/neocomplete/types/context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
--- A cursor position
---@class neocomplete.context.cursor
---@field row integer
---@field col integer
---@field col integer
2 changes: 1 addition & 1 deletion lua/neocomplete/types/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
--- The function that gets invoked when the text changes
---@field on_change fun(neocomplete.core): nil
--- Setup core (for now autocommands)
---@field setup fun(self: neocomplete.core): nil
---@field setup fun(self: neocomplete.core): nil
2 changes: 1 addition & 1 deletion lua/neocomplete/types/entry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
--- Score from filtering
---@field score number
--- The kind of the completion item
---@field kind? string|lsp.CompletionItemKind
---@field kind? string|lsp.CompletionItemKind
2 changes: 1 addition & 1 deletion lua/neocomplete/types/internal_source.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
--- Whether the source is incomplete
---@field incomplete boolean
--- The entries recieved by last completion
---@field get_offset fun(self: neocomplete.internal_source, context: neocomplete.context): integer
---@field get_offset fun(self: neocomplete.internal_source, context: neocomplete.context): integer
2 changes: 1 addition & 1 deletion lua/neocomplete/types/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
--- Window of menu
---@field winnr integer?
--- Index of selected item
---@field index integer
---@field index integer
2 changes: 1 addition & 1 deletion lua/neocomplete/types/misc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
--- Reason for triggering completion
---@alias neocomplete.completionReason
---| 1 # Auto
---| 2 # Manual
---| 2 # Manual
2 changes: 1 addition & 1 deletion lua/neocomplete/types/source.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
--- Get keyword pattern for this source
---@field get_keyword_pattern? fun(self: neocomplete.source): string
--- Returns completion in the provided context
---@field complete fun(completion_context: neocomplete.completion_context, callback: fun(items: neocomplete.entry[], is_incomplete?: boolean)): nil
---@field complete fun(completion_context: neocomplete.completion_context, callback: fun(items: neocomplete.entry[], is_incomplete?: boolean)): nil

0 comments on commit 7db25da

Please sign in to comment.