From 674320821fc456a596e8348c928856a5d98b2bfe Mon Sep 17 00:00:00 2001 From: Smirnov Oleksandr Date: Tue, 7 Feb 2023 21:27:24 +0200 Subject: [PATCH] refactor: type annotations --- lua/gopher/config.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/gopher/config.lua b/lua/gopher/config.lua index a467f83..e8cdc6d 100644 --- a/lua/gopher/config.lua +++ b/lua/gopher/config.lua @@ -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