fix: local and return were missing from commands and keymaps files
This commit is contained in:
1 parent
a4a5bfe636
commit
80a2c4d56f
2 files changed
+19
-7
No files matched your search
+12
-6
@@ -1,9 +1,15 @@
|
||||
vim.api.nvim_create_user_command("HegoBuild", function()
|
||||
local M = {}
|
||||
|
||||
function M.setup(_)
|
||||
vim.api.nvim_create_user_command("HegoBuild", function()
|
||||
require("hego").build(false)
|
||||
end, {})
|
||||
vim.api.nvim_create_user_command("HegoBuildPristine", function()
|
||||
end, {})
|
||||
vim.api.nvim_create_user_command("HegoBuildPristine", function()
|
||||
require("hego").build(true)
|
||||
end, {})
|
||||
vim.api.nvim_create_user_command("HegoFlash", function()
|
||||
end, {})
|
||||
vim.api.nvim_create_user_command("HegoFlash", function()
|
||||
require("hego").flash()
|
||||
end, {})
|
||||
end, {})
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -1,5 +1,9 @@
|
||||
local M = {}
|
||||
|
||||
function M.setup(opts)
|
||||
local k, H = opts.keys, require("hego")
|
||||
local k = opts.keys
|
||||
local H = require("hego")
|
||||
|
||||
vim.keymap.set("n", k.build, function()
|
||||
H.build(false)
|
||||
end, { desc = "NCS: Build" })
|
||||
@@ -10,3 +14,5 @@ function M.setup(opts)
|
||||
H.flash()
|
||||
end, { desc = "NCS: Flash" })
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in new issue
Block a user