From e8fe6c5b153646c28d0e63026083374bbdecb9e2 Mon Sep 17 00:00:00 2001 From: Smirnov Oleksandr Date: Sun, 13 Nov 2022 14:08:23 +0200 Subject: [PATCH] feat(config): add types annotation (#21) --- lua/gopher/config.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lua/gopher/config.lua b/lua/gopher/config.lua index 3c2f257..a467f83 100644 --- a/lua/gopher/config.lua +++ b/lua/gopher/config.lua @@ -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 = { @@ -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