refactor: type annotations

This commit is contained in:
Smirnov Oleksandr 2023-02-07 21:27:24 +02:00
parent c8adec2880
commit 674320821f

View file

@ -1,7 +1,7 @@
---@class Config ---@class gopher.Config
---@field commands ConfigCommands ---@field commands gopher.ConfigCommands
---@class ConfigCommands ---@class gopher.ConfigCommands
---@field go string ---@field go string
---@field gomodifytags string ---@field gomodifytags string
---@field gotests string ---@field gotests string
@ -10,7 +10,7 @@
---@field dlv string ---@field dlv string
local M = { local M = {
---@type Config ---@type gopher.Config
config = { config = {
---set custom commands for tools ---set custom commands for tools
commands = { commands = {
@ -25,7 +25,7 @@ local M = {
} }
---Plugin setup function ---Plugin setup function
---@param opts Config user config ---@param opts gopher.Config user config
function M.setup(opts) function M.setup(opts)
M.config = vim.tbl_deep_extend("force", M.config, opts or {}) M.config = vim.tbl_deep_extend("force", M.config, opts or {})
end end