Commit Graph

14 Commits

Author SHA1 Message Date
Akianonymus 224873b937 Missed in 67c6ec6 and 575dc10 2021-08-19 16:52:46 +05:30
siduck76 e75fbed322 disable transparency by default 2021-08-19 14:39:27 +05:30
siduck76 f10fb47637 add transparency option to user config 2021-08-19 14:36:49 +05:30
Akianonymus 880d4dc312 NvChadUpdater: Make update repo and url configurable | Improve logging 2021-08-19 14:19:12 +05:30
Akianonymus 4801ec86f1 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
2021-08-19 14:19:12 +05:30
siduck76 aa8df57cae Revert "NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288)"
This reverts commit 36cb57ecce.
2021-08-19 12:36:01 +05:30
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
siduck76 623a2a0d1a default_config : add statusline separators style 2021-08-19 11:59:42 +05:30
Galen Rowell f82b390aba
make cheatsheet enabled by default (#281) 2021-08-18 19:31:02 +05:30
Galen Rowell fa965c9797
added relativenumber option & statusline option (#279) 2021-08-18 17:43:56 +05:30
siduck76 51760c21f5 Add important notes for user , default config 2021-08-18 11:10:13 +05:30
siduck76 056fcb51f5
User config works 2021-08-18 00:33:37 +05:30
siduck76 b571fd9d40
test user config xD 2021-08-18 00:08:38 +05:30
Pocco81 0d35b9ddac
feat: added default conf and deep extension capabilities (#269) 2021-08-18 00:02:48 +05:30