refactor: type annotations
This commit is contained in:
parent
c8adec2880
commit
674320821f
1 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
---@class Config
|
||||
---@field commands ConfigCommands
|
||||
---@class gopher.Config
|
||||
---@field commands gopher.ConfigCommands
|
||||
|
||||
---@class ConfigCommands
|
||||
---@class gopher.ConfigCommands
|
||||
---@field go string
|
||||
---@field gomodifytags string
|
||||
---@field gotests string
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
---@field dlv string
|
||||
|
||||
local M = {
|
||||
---@type Config
|
||||
---@type gopher.Config
|
||||
config = {
|
||||
---set custom commands for tools
|
||||
commands = {
|
||||
|
|
@ -25,7 +25,7 @@ local M = {
|
|||
}
|
||||
|
||||
---Plugin setup function
|
||||
---@param opts Config user config
|
||||
---@param opts gopher.Config user config
|
||||
function M.setup(opts)
|
||||
M.config = vim.tbl_deep_extend("force", M.config, opts or {})
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue