Commit Graph
37 Commits
Author SHA1 Message Date
Akianonymus e0f1cb3687 theme_switcher: Handle some edgecases | Clear cmdline after default theme prompt 2021-08-03 09:00:29 +05:30
AkianonymusandGalen Rowell af783670e4 mappings: leader+th for Telescope themes 2021-08-01 15:04:04 +10:00
AkianonymusandGalen Rowell a6ab121d12 Implement theme switcher
using telescope picker

ask if want to change default theme, change value in user_config.lua

load it as a telescope extension

live preview of themes

Co-authored-by: Galen Rowell <growell3@gmail.com>
2021-08-01 15:04:04 +10:00
AkianonymusandGalen Rowell 7affb8cbfb Move from utils.lua to their respective places | Format all files 2021-08-01 15:04:04 +10:00
Akianonymus 3f1e9cf37a statusline: Show lsp icon only if client is active for current buffer 2021-07-26 16:57:00 +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
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
Akianonymus 936f368036 Replace tweekmonster/startuptime.vim with dstein64/vim-startuptime
because it's broken now
2021-07-23 20:23:02 +05:30
Akianonymus bb04ba07cb mappings.lua: Code style fixes | Cleanup options.lua 2021-07-23 18:15:13 +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
Akianonymus 3fc587b54d install.sh: Use chsh instead of grep /etc/shells 2021-07-23 18:07:30 +05:30
Akianonymus 2e1d53971e install.sh: More automation 2021-07-19 20:35:10 +05:30
Akianonymus 2567ebaee4 telescope: Fix a bug introduced in 0023233
PackerCompile at the same time conflicts with packer sync because packer always runs in bg
2021-07-19 20:35:10 +05:30
Akianonymus 1e658562f0 install.sh: Run PackerSync from script after install too
as the corresponding code for that was removed from init.lua
2021-07-19 07:20:22 +05:30
AkianonymusandVhyrro 6b507c3368 init: Asynchronously load filetype and syntax
lots of improvement for startup time

Co-authored-by: Vhyrro <vhyrro@gmail.com>
2021-07-19 07:20:22 +05:30
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
2021-07-19 07:19:53 +05:30
Akianonymus 05d57bba29 packerInit: Clone packer at opt path as we are lazy loading
move packadd to packerInit
2021-07-19 06:19:36 +05:30
Akianonymus 9c1a3ad2a2 Use a different saner syntax for pcall
takes less lines, looks much better

remove neoscroll.lua, missed in 2952f4d5c7
2021-07-17 22:10:25 +05:30
Akianonymus 1d7602e3e4 mappings: Don't yank the text after pasting in visual mode 2021-07-17 19:09:12 +05:30
Akianonymus dbc4979ebd Go to next/previous line with h,l,left and right 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
Akianonymus 35b210b46a install.sh: Don't ask for terminal shell when updating | Misc
Handle a edgecase for config copying

Remove an unnecessary print
2021-07-16 21:00:28 +05:30
Akianonymus d1f23d1bc3 [4/4] Refactor: install.sh: Don't handle packer
use +":lua require 'pluginList' vim.cmd('PackerSync')"
only for update as PackerSync should trigger on fresh install automatically
2021-07-16 20:59:17 +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
Akianonymus 3e83ec5314 [2/4] Refactor: plugins: Handle packer seperatly | Changes for configs
eg: require "plugins.neoscroll" instead of require "plugins.neoscroll".config()

second commit of refactor

handle require errors

handle cloning of packer
2021-07-16 20:08:46 +05:30
Akianonymus d16ffabcfd [1/4] Refactor: plugins: Add seperate config for each plugins
first commit of Refactor

handle require errors

move config from other places to proper files

don't create a pseudo config function for no reason

https://github.com/siduck76/NvChad/pull/156#issuecomment-881453546
2021-07-16 19:36:54 +05:30
Akianonymus 0d7345bc44 Move options from init.lua => options.lua
use a local g = vim.g
2021-07-15 23:10:53 +05:30
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
2021-07-15 23:10:53 +05:30
Akianonymus e6ae79127f Increase timeoutlen to 400
sometimes 200 ms is way too for 3 key mappings
2021-07-13 16:16:57 +05:30
Akianonymus 10ddd491c1 highlights.lua: fix comments not visible in visual selection mode 2021-07-13 16:06:31 +05:30
Akianonymus 605c9e0458 highlights.lua: set neovim bg colour 2021-07-13 14:16:27 +05:30
Akianonymus c38c4ec0cf install.sh: Do shallow clone for packer.nvim 2021-07-13 14:13:33 +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
Akianonymus e71b9bbece install.sh: Refactor install script, Add new flags
Giving either --install or --update flag is neccessary for the script to proceed

    -i | --install       => Install the config.

    -u | --update        => Update the existing config without removing existing stuff.

    -b | --backup 'path' => Custom config backup path.

    -nb | --no-backup    => Don't take existing config backup. Use with caution.

Update formatting using following command
    shfmt -i 2 -sr -p -bn -ci -w install.sh
2021-07-09 14:31:47 +05:30
Akianonymus a5bd221680 telescope.lua: Use path_display instead of shorten_path
shorten_path is deprecated now

Reference: https://github.com/nvim-telescope/telescope.nvim/wiki/Path-Display-Configuration
2021-07-09 10:12:57 +05:30
Akianonymus 27e3cf69bc install.sh: Fix all shellcheck warnings | Misc improvements
* modify sed command to work in both gnu sed and mac os sed

    https://stackoverflow.com/a/4247319

* use printf everywhere for more compatibility

* add some error checking
2021-07-05 15:00:12 +05:30