feat: added UpdateConfig command

This commit is contained in:
əlemi 2022-08-18 05:06:02 +02:00
parent 8ffbe73ff7
commit 5748d1bcdb
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -123,3 +123,12 @@ PALETTE:set_colors()
--|| UTILITY --|| UTILITY
function P(something) print(vim.inspect(something)) end function P(something) print(vim.inspect(something)) end
vim.api.nvim_create_user_command(
'UpdateConfig',
function(args)
local stdout = vim.fn.system(string.format("git -C %s pull", vim.fn.stdpath('config')))
print(stdout:sub(0, #stdout-1))
end,
{}
)