my-nvim-setup/lua/plugins
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
..
autopairs.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
autosave.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
bufferline.lua NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30
chadsheet.lua NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30
compe.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
dashboard.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
gitsigns.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
icons.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
lspconfig.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
luasnip.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
nvimtree.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
others.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
statusline.lua default_config : add statusline separators style 2021-08-19 11:59:42 +05:30
telescope.lua NvChad Updater | Chadrc Fixes | Cleanup and Formatting | Misc (#288) 2021-08-19 12:33:11 +05:30
treesitter.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30
zenmode.lua chore: stylua formatting update (#261) 2021-08-16 13:19:09 +05:30