if will be called multiple times if present in lazy_load.lua which is
totallly unnecessary
why even from there ?
Yes, this does not affect the --startuptime
removed nvim-gps as nvim-navic or winbar.nvim will be added when v0.8 neovim releases. Removed lsp signature as I was able to emulate showing args with the default signature help() window
Why do we have a table to require a single module. We had this when we had plugins, colors etc.
But we only have one module now. So why bother a list and looping through for a single module ?
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
* 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
Actually saved some milliseconds, can be observed in benchmarks too
from packer readme
```
To optimize startup time, packer.nvim compiles code to perform the lazy-loading operations you specify. This means that you do not need to load packer.nvim unless you want to perform some plugin management operations.
```
Add packer commands manually to mappings.lua, but with basic functionalty
By this, we don't losr the packer commands and don't even load at startup
After some command is actually executed, it will load the PackerCommands as they were
It doesn't seem to be improving stuff as it is not supposed to
Due to the half baked stats of the startuptime plugin, people were fooled
no point in disabling filetype and whatenot
See some discussion here: https://github.com/siduck76/NvChad/issues/175
third commit of refactor
perf improvements due to async
run packer sync if base16 not found
this is not perfect error handling for initial run, but something
handle require errors