gopher.nvim/lua/gopher/config.lua
2023-06-10 02:01:58 +03:00

33 lines
670 B
Lua

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