Skip to content

Commit

Permalink
lint: fix type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Aug 28, 2023
1 parent 73f5c19 commit be4220d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/conform/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ end

---@private
---@param formatter string
---@return nil|conform.FormatterConfig
---@return nil|conform.StaticFormatterConfig
M.get_formatter_config = function(formatter)
local config = M.formatters[formatter]
if not config then
Expand Down
4 changes: 2 additions & 2 deletions lua/conform/runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local uv = vim.uv or vim.loop
local M = {}

---@param ctx conform.Context
---@param config conform.FormatterConfig
---@param config conform.StaticFormatterConfig
M.build_cmd = function(ctx, config)
local command = config.command
if type(command) == "function" then
Expand Down Expand Up @@ -159,7 +159,7 @@ local function run_formatter(bufnr, formatter, input_lines, callback)
end

---@param bufnr integer
---@param config conform.FormatterConfig
---@param config conform.StaticFormatterConfig
---@return conform.Context
M.build_context = function(bufnr, config)
if bufnr == 0 then
Expand Down

0 comments on commit be4220d

Please sign in to comment.