27 Commits (f7d2bacb5178f441e3d2a17bfa58140ea2891f42)

Author SHA1 Message Date
Akianonymus 7753e03b9e 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
3 years ago
Akianonymus e3f0429a72 tree-wide: Format files
ugh why do people don't push formatted stuff
3 years ago
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 fa965c9797
added relativenumber option & statusline option (#279) 3 years ago
Galen Rowell 86903ab982
chore: stylua formatting update (#261)
* addded stylua config file

* chore: formatted with stylua
3 years ago
siduck76 c80d79a7cc set completeopt for compe 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 3f44f0761a fix statusline missing after termclose (#236) 3 years ago
siduck76 0efa21c9c9 add user_config 3 years ago
siduck76 ea992308f1 disable tilde on end of buffer 3 years ago
Akianonymus 7affb8cbfb Move from utils.lua to their respective places | Format all files 3 years ago
siduck76 5236893e5e add permanent undo (#197) 3 years ago
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
3 years ago
Akianonymus bb04ba07cb mappings.lua: Code style fixes | Cleanup options.lua 3 years ago
siduck76 020daec5fc
disable matchit
matchit was already disabled by default but a recent PR enabled it again , sorry for that! Since vim matchup already does what matchit does , I'll remove it.
3 years ago
siduck76 845ac0e615
Merge pull request #171 from Pocco81/dev-init
Securely call modules and disable all builtin plugin
3 years ago
siduck76 08dfe17678 clean stuff | map new tab 3 years ago
Pocco81 355178a7bb feat: secure calls + disabled all builtin plugins 3 years ago
Akianonymus 6b507c3368 init: Asynchronously load filetype and syntax
lots of improvement for startup time

Co-authored-by: Vhyrro <vhyrro@gmail.com>
3 years ago
Akianonymus 0023233eef Fix formatting | Handle a edgecase in telescope config | Misc
* fix formatting in pluginList, luasnip

* don't use pcall on highlights

* sync and compile fzf and media files only when the error occurs, add a
  help text telling tbe user to restart neovim
3 years ago
Akianonymus dbc4979ebd Go to next/previous line with h,l,left and right 3 years ago
siduck76 2952f4d5c7 clean stuff 3 years ago
Akianonymus 0d7345bc44 Move options from init.lua => options.lua
use a local g = vim.g
3 years ago
Akianonymus 42bf581337 Disable nvim intro and tilde chars on end of buffer
This avoids the situation when the initial screen looks out of place
because there is some pre rendered text

https://github.com/neovim/neovim/pull/8546
3 years ago
Akianonymus e6ae79127f Increase timeoutlen to 400
sometimes 200 ms is way too for 3 key mappings
3 years ago
siduck76 c6084220de improve config structure 3 years ago