4 files changed,
144 insertions(+),
1 deletions(-)
Author:
Smirnov Olexander
ss2316544@gmail.com
Committed at:
2022-05-30 23:34:09 +0300
Parent:
ca1bc4b
A
lua/gopher/_utils/init.lua
@@ -0,0 +1,22 @@
+return { + ---@param t table + ---@return boolean + empty = function(t) + if t == nil then + return true + end + + return next(t) == nil + end, + + ---@param s string + ---@return string + rtrim = function(s) + local n = #s + while n > 0 and s:find("^%s", n) do + n = n - 1 + end + + return s:sub(1, n) + end, +}
M
lua/gopher/init.lua
@@ -1,5 +1,8 @@
+local tags = require "gopher.struct_tags" local gopher = {} gopher.install_deps = require("gopher.installer").install_all +gopher.tags_add = tags.add +gopher.tags_rm = tags.remove return gopher
M
lua/gopher/installer.lua
@@ -1,6 +1,8 @@
local Job = require "plenary.job" local M = { - urls = {}, + urls = { + gomodifytags = "github.com/fatih/gomodifytags", + }, } local function install(pkg)