Commit Graph

125 Commits

Author SHA1 Message Date
siduck ce9388d13d load bg file (containing vim.opt.bg value) 2022-11-22 08:29:48 +05:30
siduck 4f789d3406 add multiple cmp themes https://github.com/NvChad/base46/issues/109 2022-11-21 21:06:49 +05:30
siduck d27029d1b1 load base46_cache in instead of minified modules 2022-11-19 11:45:33 +05:30
siduck 3616f417e7 fix packer bootstrapping not working 2022-11-17 23:16:28 +05:30
siduck 76f0c9bc6f rm incorrect theme cache path 2022-11-17 22:32:57 +05:30
siduck 770e07f77c fix typo in mkdir cmd 2022-11-17 22:04:03 +05:30
siduck a894ced767 add cmd to compile nvchad theme 2022-11-17 21:32:55 +05:30
siduck f77d052d70 change highlight loading function name 2022-11-17 19:26:43 +05:30
siduck 8a18f89b03 install binaries from mason.nvm & tsparsers automatically after nvchad install 2022-09-11 01:07:44 +05:30
siduck be6d1f995f fix mapleader not mapped properly to general mappings
this happens cuz all mappings are set just after calling  core.options and custom module is called at the end of the init.lua #1475
2022-08-15 19:23:55 +05:30
Akianonymus 78ddf8d624 Just load impatient from init
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
2022-08-12 22:00:07 +05:30
nullchilly b3d3c5a7dd Don't load packer at startup 2022-08-07 15:46:45 +05:30
nullchilly 22c3cc0c0d Don't load packer at startup 2022-08-07 15:46:45 +05:30
siduck 0b83d9cc0c shorten some mapping functions in utils.lua 2022-08-07 08:25:07 +05:30
siduck 6f0aa376a8 set shiftwidth to 2 | format all files
big thanks to @ghifarit53
2022-07-22 16:00:00 +00:00
siduck 62b9c09f44 fix tabufline crash when formatting buf | (#1265) 2022-06-26 06:24:52 +05:30
siduck 9bca3eacae clean config | fix (#1225) (#1226) 2022-06-18 09:57:17 +05:30
siduck 0bde81a074 Improve startuptime | remove un-needed plugins | lazy load plugin highlights too
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
2022-06-14 17:36:27 +05:30
siduck f78dc30508 minor improvements to startuptime 2022-06-01 00:49:23 +05:30
siduck 59de298d8f fix #1155, #1149 2022-05-30 12:33:46 +05:30
siduck ed9082dfb4 load custom module | fix a2ff5c285e (commitcomment-74274032) 2022-05-23 14:54:59 +05:30
siduck a2ff5c285e avoid un-needed lazy loading of packer | improve packer bootstrapping 2022-05-23 12:54:03 +05:30
siduck 0844431d37 breaking change : re-implement custom mappings | simplify it | add whichkey
fixes #1057 , #1047
2022-05-12 18:26:01 +05:30
Arman.H 5a1240be82 refactor: add utils to the global scope 2022-05-10 20:15:08 +05:30
siduck adecbe719f BREAKING CHANGE | re-implementation of custom config 2022-04-27 21:12:28 +05:30
Sidhanth Rathod d906bb0d9c
EVERYONE CHECK THE PINNED ISSUE ASAP!!! 2022-04-22 08:23:40 +05:30
siduck e8b31c9308 add impatient.nvim and filetype.nvim | improve startuptime 2022-01-29 23:02:23 +05:30
siduck c2a1298ac0 fix error handling of custom/init.lua (#739) 2022-01-22 18:33:05 +05:30
Akianonymus 4c85f25a09 init.lua: Print error message if custom init.lua cannot be called properly 2022-01-22 14:53:26 +05:30
siduck 799432e99e load custom/init.lua at last | fix (#694) 2022-01-07 07:30:55 +05:30
siduck 16d035c031 fix silly spelling mistake 2021-12-11 11:58:52 +05:30
Akianonymus 2293b16709 Cleanup | Format files
* fix some lint warnings
* remove some unneeded code
2021-12-11 11:58:52 +05:30
siduck 8de3f4e84c restructure init.lua | lspconfig 2021-11-14 06:49:33 +05:30
Ashin Antony 5db8d84515 Update init.lua 2021-09-29 22:03:29 +05:30
siduck76 92a9e13e7c Update init.lua 2021-09-28 15:11:03 +05:30
github-actions[bot] 7cab4295ee chore: format source code 2021-09-28 15:11:03 +05:30
Ashin Antony 8726de1faa chore: Clean init.lua
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 ?
2021-09-28 15:11:03 +05:30
Akianonymus 9ffddb6b52 Restructure config | Move some to a packer plugin | Lot of cleanup
* move teleacope files, updater and related utils to
  https://github.com/NvChad/core

* restructure config file and directory structure

* expose mappings for better escape

* allow multiple mappings for some

* improve merge table function for the same

* move autocommands to a seperate file

* rearrange everything alphabetically where sanely possible

* rearrange packer plugin list on the basis of trigerred state

config structure now

 .
├──  init.lua
├──  LICENSE
├──  lua
│  ├──  chadrc.lua
│  ├──  colors
│  │  ├──  highlights.lua
│  │  ├──  init.lua
│  │  └──  themes
│  │     ├──  chadracula.lua
│  │     ├──  everforest.lua
│  │     ├──  gruvchad.lua
│  │     ├──  javacafe.lua
│  │     ├──  mountain.lua
│  │     ├──  norchad.lua
│  │     ├──  one-light.lua
│  │     ├──  onedark.lua
│  │     ├──  tokyonight.lua
│  │     └──  tomorrow-night.lua
│  ├──  core
│  │  ├──  autocmds.lua
│  │  ├──  init.lua
│  │  ├──  mappings.lua
│  │  ├──  options.lua
│  │  └──  utils.lua
│  ├──  default_config.lua
│  └──  plugins
│     ├──  configs
│     │  ├──  autopairs.lua
│     │  ├──  autosave.lua
│     │  ├──  bufferline.lua
│     │  ├──  chadsheet.lua
│     │  ├──  compe.lua
│     │  ├──  dashboard.lua
│     │  ├──  gitsigns.lua
│     │  ├──  icons.lua
│     │  ├──  lspconfig.lua
│     │  ├──  luasnip.lua
│     │  ├──  nvimtree.lua
│     │  ├──  others.lua
│     │  ├──  statusline.lua
│     │  ├──  telescope.lua
│     │  ├──  treesitter.lua
│     │  └──  zenmode.lua
│     ├──  init.lua
│     └──  packerInit.lua
└──  README.md
2021-08-22 17:54:10 +05:30
Akianonymus 02f0122ab4 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
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
Galen Rowell 86903ab982
chore: stylua formatting update (#261)
* addded stylua config file

* chore: formatted with stylua
2021-08-16 13:19:09 +05:30
Akianonymus 7affb8cbfb Move from utils.lua to their respective places | Format all files 2021-08-01 15:04:04 +10:00
Akianonymus 92eb5ca740 Do not load packer on startup
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
2021-07-23 21:58:14 +05:30
Akianonymus 6b4435caef Don't use new_async
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
2021-07-23 21:57:14 +05:30
siduck76 e01aafeea5
Merge pull request #178 from Akianonymus/main
install.sh: Use chsh instead of grep /etc/shells | init: Move bufferline config to pluginList | Misc improvements
2021-07-23 18:38:32 +05:30
siduck76 559acbd135
rm unneeded error landing
nvim by default shows stackrace path so I dont think we should be having this.
2021-07-23 18:17:31 +05:30
Akianonymus fcfb814594 init: Move bufferline config to pluginList.lua
plugins.bufferline should be as config of nvim-bufferline

and pluginList for packer
2021-07-23 18:14:52 +05:30
siduck76 b54c4ca5de
better error message 2021-07-21 23:00:19 +05:30
Pocco81 5531edf8e4 fix: formatted code with luafmt 2021-07-20 23:20:00 -05:00