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

View file

@ -1,4 +1,5 @@
local utils = require "gopher._utils"
local c = require("gopher.config").config.commands
local M = {
_required = {
plugins = {
@ -6,10 +7,10 @@ local M = {
{ lib = "nvim-treesitter" },
},
binarys = {
{ bin = "go", help = "required for GoMod, GoGet, GoGenerate command" },
{ bin = "gomodifytags", help = "required for modify struct tags" },
{ bin = "impl", help = "required for interface implementing" },
{ bin = "gotests", help = "required for test(s) generation" },
{ bin = c.go, help = "required for GoMod, GoGet, GoGenerate command" },
{ bin = c.gomodifytags, help = "required for modify struct tags" },
{ bin = c.impl, help = "required for interface implementing" },
{ bin = c.gotests, help = "required for test(s) generation" },
},
},
}