Commit Graph

57 Commits

Author SHA1 Message Date
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
Akianonymus
e3f0429a72 tree-wide: Format files
ugh why do people don't push formatted stuff
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
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!
2021-08-18 15:43:35 +05:30
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
2021-08-17 23:21:10 +05:30
siduck76
c62e94923a add mapping cheatsheet (#244) 2021-08-16 22:18:08 +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
siduck76
154ba7d419 add theme toggler (#245) 2021-08-15 00:44:55 +05:30
Galen Rowell
e80a6935d6
Now have 3 separate terms, window, vert & hori, renamed some variables (#251) 2021-08-14 19:28:24 +05:30
siduck76
fd2aa6095f improve nav_in insertmode (#240) 2021-08-14 13:44:28 +05:30
curtain
2b331e7fa1
add some useful keymap in insert/command mode with switch to toggle (#240)
Co-authored-by: curtain <kaleidoscope@163.com>
2021-08-14 13:26:54 +05:30
siduck76
f805cb1cbd user_config : add option to disable telescope media plugin 2021-08-14 13:00:01 +05:30
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
2021-08-13 21:29:17 +05:30
curtain
f832195a81
fix luasnip complete and move it to reasonable place (#235)
Co-authored-by: curtain <kaleidoscope@163.com>
2021-08-13 10:05:31 +05:30
siduck76
0efa21c9c9 add user_config 2021-08-12 17:28:03 +05:30
Akianonymus
af783670e4 mappings: leader+th for Telescope themes 2021-08-01 15:04:04 +10:00
siduck76
87f3415f6f
Update mappings.lua 2021-07-28 19:53:19 +05:30
siduck76
f27f7b1502 add hl to nvimtree_rootdir 2021-07-28 19:18:03 +05:30
Galen Rowell
462a20d66a fix mapping error 2021-07-28 14:42:55 +10:00
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
2021-07-26 15:14:49 +05:30
Akianonymus
268c37e52f mappings: Allow moving the cursor through wrapped lines normally
This doesn't affect any other stuff like 10j or 10k
2021-07-26 14:32:29 +05:30
siduck76
a31d8fb228 fix telescope media files mapping #183 2021-07-24 10:11:21 +05:30
Tavo Annus
021b5c07f5 Merge branch 'main' of github.com:siduck76/NvChad into vim-fugitive 2021-07-23 20:57:32 +03:00
Tavo Annus
472278f2e3 Add vim-fugitive plugin 2021-07-23 20:22:09 +03: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
bb04ba07cb mappings.lua: Code style fixes | Cleanup options.lua 2021-07-23 18:15:13 +05:30
siduck76
08dfe17678 clean stuff | map new tab 2021-07-21 11:26:25 +05:30
Galen Rowell
a6ea40d7ba open default shell terminal with proper neovim commands, fix buffer tabline issue 2021-07-20 19:38:43 +10:00
Galen Rowell
ff14ba61f9 open new buffers, instead of tabs 2021-07-20 19:36:06 +10:00
siduck76
18f3b8b93e
map jk escape from terminal buffer 2021-07-18 16:10:23 +05:30
Galen Rowell
1bedbbe5c4 Fix terminal buffer format bug, & enable escape from terminal & visual mdoes 2021-07-18 15:42:54 +10:00
Akianonymus
1d7602e3e4 mappings: Don't yank the text after pasting in visual mode 2021-07-17 19:09:12 +05:30
Akianonymus
72b9fa5018 mappings: Use ESC to clear search highlighting and to get out of terminal insert mode 2021-07-17 19:09:07 +05:30
siduck76
2c74abe936 map escape to normal mode 2021-07-17 16:13:42 +05:30
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
2021-07-16 20:11:08 +05:30
siduck76
3a209318bb
rm duplicate mapping 2021-07-09 17:10:28 +05:30
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
2021-07-09 15:26:09 +05:30
ashincoder
7f6cf1bc4b seperate prefix for zen mappings and timeoutlen in settings 2021-07-05 17:19:12 +05:30
siduck76
50b00f4737 replace vim-auto-save with AutoSave.nvim 2021-07-02 15:17:36 +05:30
siduck76
d073e01117 fix typo in mappings #109 2021-07-01 06:26:51 +05:30
siduck76
50321ad4a0 change some mappings 2021-06-27 22:08:47 +05:30
siduck76
ca29b38478 lazy load colorizer 2021-06-27 20:59:39 +05:30
siduck76
7d23b8c24e add some mappings 2021-06-27 18:15:58 +05:30
siduck76
9da869feee replace vsnip with luasnip,clean some confs 2021-06-26 18:20:25 +05:30
siduck76
c5f5709f10 lazy loading telescope! 2021-06-26 08:11:39 +05:30
siduck76
b42f4778f9 lazy load dashboard 2021-06-26 07:40:23 +05:30
siduck76
e2717401fe lazy load neoformat + lspkind ( run :PackerSync and :PackerCompile ) 2021-06-26 07:31:15 +05:30
siduck76
4e23587ca3 lazy loading : nvimtree and autopairs 2021-06-25 23:06:17 +05:30
siduck76
e771a32ab8 lazy loading : compe 2021-06-24 22:49:42 +05:30