diff options
author | kylo252 <[email protected]> | 2021-10-01 13:27:06 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-01 13:27:06 +0200 |
commit | a273c46eee751de4a61360ae0076ed4dac433e5d (patch) | |
tree | 09ab7027a2920079d251524f92d555f717db45ed /lua/utils/init.lua | |
parent | 52dd273ca9bc552c9bacbdbf697818e75ee993d7 (diff) |
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
Diffstat (limited to 'lua/utils/init.lua')
-rw-r--r-- | lua/utils/init.lua | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lua/utils/init.lua b/lua/utils/init.lua index 5a5e4ba3..7f8e1f77 100644 --- a/lua/utils/init.lua +++ b/lua/utils/init.lua @@ -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 |