2 files changed,
3 insertions(+),
3 deletions(-)
Author:
Arne Van Maele
93863978+arnevm123@users.noreply.github.com
Committed by:
GitHub
noreply@github.com
Committed at:
2024-02-11 01:44:59 +0200
Parent:
bbe8931
jump to
| M | lua/gopher/config.lua |
| M | lua/gopher/iferr.lua |
M
lua/gopher/config.lua
@@ -20,7 +20,7 @@ impl = "impl",
iferr = "iferr", dlv = "dlv", }, - ---@class gopjer.ConfigGotests + ---@class gopher.ConfigGotests gotests = { -- gotests doesn't have template named "default" so this plugin uses "default" to set the default template template = "default",
M
lua/gopher/iferr.lua
@@ -1,4 +1,4 @@
-local c = require("gopher.config").commands +local c = require "gopher.config" local iferr = {} -- That's Lua of vimscript implementation of: github.com/koron/iferr@@ -6,7 +6,7 @@ function iferr.iferr()
local boff = vim.fn.wordcount().cursor_bytes local pos = vim.fn.getcurpos()[2] - local data = vim.fn.systemlist((c.iferr .. " -pos " .. boff), vim.fn.bufnr "%") + local data = vim.fn.systemlist((c.commands.iferr .. " -pos " .. boff), vim.fn.bufnr "%") if vim.v.shell_error ~= 0 then error("iferr failed: " .. data) end