feat: add LvimUpdate command (#1634)

* feat: add prelimenary LvimUpdate command

* feat: use native process management

* feat: add a telescope change-log utility

* fix: update readme to include the new command
This commit is contained in:
kylo252 2021-10-01 13:27:06 +02:00 committed by GitHub
parent 52dd273ca9
commit a273c46eee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 194 additions and 102 deletions

View file

@ -140,19 +140,7 @@ function utils.is_file(filename)
return stat and stat.type == "file" or false
end
function utils.join_paths(...)
local path_sep = vim.loop.os_uname().version:match "Windows" and "\\" or "/"
local result = table.concat(vim.tbl_flatten { ... }, path_sep):gsub(path_sep .. "+", path_sep)
return result
end
function utils.lvim_cache_reset()
_G.__luacache.clear_cache()
_G.__luacache.save_cache()
require("plugin-loader"):cache_reset()
end
vim.cmd [[ command! LvimCacheReset lua require('utils').lvim_cache_reset() ]]
utils.join_paths = _G.join_paths
return utils