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:
parent
1db0914cfc
commit
40a2839eab
11 changed files with 97 additions and 10 deletions
19
lua/gopher/config.lua
Normal file
19
lua/gopher/config.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue