replace util interpolation with shipwright

This commit is contained in:
Michael Chris Lopez
2021-11-06 13:06:54 +08:00
parent 981c2bc0b2
commit c623e9ff93
2 changed files with 8 additions and 15 deletions

View File

@@ -1,12 +1,5 @@
local M = {}
-- got from http://lua-users.org/wiki/StringInterpolation
function M.interp(s, tab)
return (s:gsub("($%b{})", function(w)
return tab[w:sub(3, -2)] or w
end))
end
function M.apply_colorscheme()
local colors_name = vim.api.nvim_get_var "colors_name"
package.loaded[colors_name] = nil