feat(config): add base implementation

* feat(config): naive implementation

feat(config): get command for a run from config

* docs: add config

* fix typo [skip ci]

* test: add config
This commit is contained in:
Smirnov Oleksandr 2022-06-27 20:28:35 +03:00 committed by GitHub
parent 1db0914cfc
commit 40a2839eab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 97 additions and 10 deletions

19
lua/gopher/config.lua Normal file
View file

@ -0,0 +1,19 @@
local M = {
config = {
---set custom commands for tools
commands = {
go = "go",
gomodifytags = "gomodifytags",
gotests = "gotests",
impl = "impl",
},
},
}
---Plugin setup function
---@param opts table user options
function M.setup(opts)
M.config = vim.tbl_deep_extend("force", M.config, opts)
end
return M