18 Commits (aa8df57cae0996868040f964d7bd81418322ef6a)

Author SHA1 Message Date
siduck76 aa8df57cae Revert "NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288)"
This reverts commit 36cb57ecce.
3 years ago
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
3 years ago
Galen Rowell f82b390aba
make cheatsheet enabled by default (#281) 3 years ago
Galen Rowell fa965c9797
added relativenumber option & statusline option (#279) 3 years ago
Galen Rowell 575dc10ddc
Greatly improve terminal features! Persistent terminals (#275)
* remove toggleTerm plugin

* Adding term binds, term hider & Telescope terms to bring them back

* Adding many term features!
3 years ago
siduck76 51760c21f5 Add important notes for user , default config 3 years ago
Pocco81 0d35b9ddac
feat: added default conf and deep extension capabilities (#269) 3 years ago
Aki 98086892a7
tree-wide: Format files | Reformat chadrc | Misc (#268)
chadrc: looks cleaner this way

move close buffer to misc as it is not dependent on buffer plugin
3 years ago
siduck76 c62e94923a add mapping cheatsheet (#244) 3 years ago
Galen Rowell 86903ab982
chore: stylua formatting update (#261)
* addded stylua config file

* chore: formatted with stylua
3 years ago
ashincoder 7b796294a4
refact: move false to true in plugins and change disable to 'not' so that the user does'nt be confused (#257) 3 years ago
siduck76 154ba7d419 add theme toggler (#245) 3 years ago
Galen Rowell e80a6935d6
Now have 3 separate terms, window, vert & hori, renamed some variables (#251) 3 years ago
siduck76 fd2aa6095f improve nav_in insertmode (#240) 3 years ago
curtain 2b331e7fa1
add some useful keymap in insert/command mode with switch to toggle (#240)
Co-authored-by: curtain <kaleidoscope@163.com>
3 years ago
siduck76 f805cb1cbd user_config : add option to disable telescope media plugin 3 years ago
Galen Rowell 91c8736146
WIP - Added toggleterm, based upon curtanips work (#237)
* Added toggleterm, based upon curtanips work
Also other various term fixes & changed term mappings

* new NvChad config to hide statusline by filetype
3 years ago
siduck76 0efa21c9c9 add user_config 3 years ago