54 Commits (36cb57ecceee4fc61a9af2418da3832b714569c3)

Author SHA1 Message Date
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 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
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
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
curtain f832195a81
fix luasnip complete and move it to reasonable place (#235)
Co-authored-by: curtain <kaleidoscope@163.com>
3 years ago
siduck76 0efa21c9c9 add user_config 3 years ago
Akianonymus af783670e4 mappings: leader+th for Telescope themes 3 years ago
siduck76 87f3415f6f
Update mappings.lua 3 years ago
siduck76 f27f7b1502 add hl to nvimtree_rootdir 3 years ago
Galen Rowell 462a20d66a fix mapping error 3 years ago
G-Rowell 3b05354337 Use jdhao/better-escape.vim to handle jk as escape mappings
only for insert mode ( so also works on terminal too )

remove visual mode key binding, till we find a proper solution, because it is super annoying right now

Original pr here: https://github.com/siduck76/NvChad/pull/160
3 years ago
Akianonymus 268c37e52f mappings: Allow moving the cursor through wrapped lines normally
This doesn't affect any other stuff like 10j or 10k
3 years ago
siduck76 a31d8fb228 fix telescope media files mapping #183 3 years ago
Tavo Annus 021b5c07f5 Merge branch 'main' of github.com:siduck76/NvChad into vim-fugitive 3 years ago
Tavo Annus 472278f2e3 Add vim-fugitive plugin 3 years ago
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
3 years ago
Akianonymus bb04ba07cb mappings.lua: Code style fixes | Cleanup options.lua 3 years ago
siduck76 08dfe17678 clean stuff | map new tab 3 years ago
Galen Rowell a6ea40d7ba open default shell terminal with proper neovim commands, fix buffer tabline issue 3 years ago
Galen Rowell ff14ba61f9 open new buffers, instead of tabs 3 years ago
siduck76 18f3b8b93e
map jk escape from terminal buffer 3 years ago
Galen Rowell 1bedbbe5c4 Fix terminal buffer format bug, & enable escape from terminal & visual mdoes 3 years ago
Akianonymus 1d7602e3e4 mappings: Don't yank the text after pasting in visual mode 3 years ago
Akianonymus 72b9fa5018 mappings: Use ESC to clear search highlighting and to get out of terminal insert mode 3 years ago
siduck76 2c74abe936 map escape to normal mode 3 years ago
Akianonymus 643d1bd7d8 [3/4] Refactor: init: Use async | Move theme stuff to theme.lua
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
3 years ago
siduck76 3a209318bb
rm duplicate mapping 3 years ago
Akianonymus 2988a22eb8 mappings.lua: Fix ctrl + q when vertical/horizontal split buffer is open
currently when a vertical or horizontal split buffer is open and ctrl + q is used, then it removes the buffer content but not the actual buffer, further it duplicates an existing buffer content.

This commit fixes that
3 years ago
ashincoder 7f6cf1bc4b seperate prefix for zen mappings and timeoutlen in settings 3 years ago
siduck76 50b00f4737 replace vim-auto-save with AutoSave.nvim 3 years ago
siduck76 d073e01117 fix typo in mappings #109 3 years ago
siduck76 50321ad4a0 change some mappings 3 years ago
siduck76 ca29b38478 lazy load colorizer 3 years ago
siduck76 7d23b8c24e add some mappings 3 years ago
siduck76 9da869feee replace vsnip with luasnip,clean some confs 3 years ago
siduck76 c5f5709f10 lazy loading telescope! 3 years ago
siduck76 b42f4778f9 lazy load dashboard 3 years ago
siduck76 e2717401fe lazy load neoformat + lspkind ( run :PackerSync and :PackerCompile ) 3 years ago
siduck76 4e23587ca3 lazy loading : nvimtree and autopairs 3 years ago
siduck76 e771a32ab8 lazy loading : compe 3 years ago
ashincoder c0369c7130 added commenting keybinding 3 years ago
siduck76 d7c0e1fefb
Update mappings.lua 3 years ago
marvelman3284 9e701f08d3 Unpersonalize my dots 3 years ago