neovim-confs/lua
Aki 36cb57ecce
NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288)
* tree-wide: Format files

ugh why do people don't push formatted stuff

* mappings|init: Move init mappings to a function, only call when required | Show err message for init

because mappings.lua is called from multiple places, so there should't be any code that executes without calling a specific function

show error message when something fails in init.lua
makes no sense to not

rearrange plugin functions alphabetically, but keep misc at top

* feat: Do not depend on user config | Fix merging of configs

because it is a user config, so our config shoudn't break even we if dont have it

use our own table merge function

move loading config to a function

use a global variable to store the config, so no need to call the table function everytime

* Add NvChadUpdate command and shortcut for it

map leader+uu to it

summary of what it does:

first ask the user for confirmation and tell that the updater is gonna run git reset --hard in config repo and chadrc will be restored

take backup of chadrc in a lua string and locally in a file with chadrc.bak.(random numbers)

git reset on config dir and git pull

whether success or error, restore the chadrc file

if restore fails, then print backup file path

for more deep understanding, read the comments in utils.lua

* NvChadUpdater: Make update repo and url configurable | Improvr logging
2021-08-19 12:33:11 +05:30
..
plugins NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30
telescope/_extensions NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30
themes tree-wide: Format files | Reformat chadrc | Misc (#268) 2021-08-17 23:21:10 +05:30
chadrc.lua NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30
default_config.lua NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30
highlights.lua add bg to Floating window 2021-08-18 15:25:58 +05:30
mappings.lua NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30
options.lua NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30
packerInit.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
pluginList.lua NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30
theme.lua NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30
utils.lua NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30