Skip to content

Commit

Permalink
feat(config): add types annotation (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
olexsmir committed Nov 13, 2022
1 parent f835464 commit e8fe6c5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lua/gopher/config.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
---@class Config
---@field commands ConfigCommands

---@class ConfigCommands
---@field go string
---@field gomodifytags string
---@field gotests string
---@field impl string
---@field iferr string
---@field dlv string

local M = {
---@type Config
config = {
---set custom commands for tools
commands = {
Expand All @@ -13,7 +25,7 @@ local M = {
}

---Plugin setup function
---@param opts table user options
---@param opts Config user config
function M.setup(opts)
M.config = vim.tbl_deep_extend("force", M.config, opts or {})
end
Expand Down

0 comments on commit e8fe6c5

Please sign in to comment.