feat: Added cmd for ChadReload

This commit is contained in:
ashincoder 2021-08-25 20:09:20 +05:30 committed by siduck76
parent 9b4b288d01
commit c02b1a063f
1 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,10 @@ M.misc = function()
-- add NvChadUpdate command and mapping -- add NvChadUpdate command and mapping
cmd "silent! command! NvChadUpdate lua require('nvchad').update_nvchad()" cmd "silent! command! NvChadUpdate lua require('nvchad').update_nvchad()"
map("n", maps.update_nvchad, ":NvChadUpdate <CR>") map("n", maps.update_nvchad, ":NvChadUpdate <CR>")
-- add ChadReload command and maping
cmd "silent! command! NvChadReload lua require('chad_reload').Restart()"
end end
local function user_config_mappings() local function user_config_mappings()