Commit Graph

410 Commits

Author SHA1 Message Date
Akianonymus bf3d4b31a6 Missed in previous commit 2021-08-22 17:58:48 +05:30
Akianonymus a28a838c06 NvChad/core -> Nvchad/extensions 2021-08-22 17:54:10 +05:30
Akianonymus a82f71334f telescope-media: Check if ueberzug is available before loading the extension 2021-08-22 17:54:10 +05:30
Akianonymus ef40dfcbc1 plugins: Properly lazy load telescope
from packer docs

module = string or list      -- Specifies Lua module names for require. When requiring a string which starts
                               -- with one of these module names, the plugin will be loaded.
2021-08-22 17:54:10 +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
siduck76 dceb6a70d4 rm mappings var from bufferline conf 2021-08-21 17:36:55 +05:30
siduck76 83992378a4 treesitter : keep only lua parser installed by default 2021-08-21 11:28:25 +05:30
siduck76 cbb0ddc0a5 clean lspconfig 2021-08-21 11:23:20 +05:30
siduck76 b5668a037a avoid setting root_dir for lspservers 2021-08-21 11:04:07 +05:30
ashincoder b57cb6cdc0 fix: fixed error of statusline. 2021-08-20 16:49:32 +05:30
Akianonymus 4c04160b87 dashboard: Fix alignment 2021-08-20 16:27:29 +05:30
Galen Rowell fd5d50f194 fix Dashboard docs, fix default_config issue 2021-08-20 09:29:13 +05:30
Akianonymus f7d2bacb51 Fix theme switcher statusline reload 2021-08-20 01:00:46 +05:30
siduck76 89c371397f better colors 2021-08-20 00:28:42 +05:30
siduck76 47ab9c28a1 add no buffer icon to statusline 2021-08-19 18:13:58 +05:30
siduck76 5ae6fba20d make statusline more pretty 2021-08-19 17:35:24 +05:30
siduck76 f10fb47637 add transparency option to user config 2021-08-19 14:36:49 +05:30
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
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 6224ed6283 Revert "chore: update path_display (#285)"
This reverts commit 1d78add91e.
2021-08-19 13:24:35 +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
siduck76 623a2a0d1a default_config : add statusline separators style 2021-08-19 11:59:42 +05:30
Tuan Nguyen 1d78add91e
chore: update path_display (#285) 2021-08-19 09:36:32 +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
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
Sage Baram ea0a221230
(feat) add filename edit/lock icons provider (#253)
* (feat) add filename edit/lock icons provider

* Update statusline.lua

Co-authored-by: Sage Baram <sagebaram@gamil.com>
Co-authored-by: siduck76 <siduck13@gmail.com>
2021-08-14 23:56:34 +05:30
siduck76 ebdcd4cae1 fix luasnip creating statusline errors (#250) 2021-08-14 22:35:10 +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
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
siduck76 c7fdd68072 statusline : add vimode colors 2021-08-13 12:12:43 +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 f22366eac9 truezen.nvim : update var 2021-08-09 21:30:17 +05:30
siduck76 d390966b4d disable indentline in packer float window 2021-08-07 11:42:56 +05:30
siduck76 d4193727bd add lsp-signature.nvim (#142) 2021-08-07 11:25:23 +05:30
Akianonymus a25f4fca70 Just packer shenanigans 2021-08-03 09:38:50 +05:30
Akianonymus 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
Akianonymus 7affb8cbfb Move from utils.lua to their respective places | Format all files 2021-08-01 15:04:04 +10:00
siduck76 f27f7b1502 add hl to nvimtree_rootdir 2021-07-28 19:18:03 +05:30
Akianonymus 3f1e9cf37a statusline: Show lsp icon only if client is active for current buffer 2021-07-26 16:57:00 +05:30
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
siduck76 9157cafb61
Update telescope.lua 2021-07-25 01:31:50 +05:30
siduck76 c98334ae08 lspconfig : update diagnostics in insert mode 2021-07-24 09:59:39 +05:30
siduck76 fec301504f clean stuff 2021-07-21 22:37:48 +05:30
Pocco81 1e2d299bf9 feat: suppressed error messages from lang servers and added better glyph for publish diagnostics 2021-07-20 12:38:51 -05:00
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 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 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
siduck76 f0b491cd94 update truezen config 2021-07-17 01:04:13 +05:30
siduck76 5bb85b8176 trim default ts parsers list 2021-07-16 23:40:52 +05:30
siduck76 2952f4d5c7 clean stuff 2021-07-16 23:22:36 +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
siduck76 4a934e9a82 use better char for gitsigns 2021-07-15 11:09:58 +05:30
siduck76 c4a8ecf47f add bufferline highlights 2021-07-15 10:18:10 +05:30
Oscar Forner Martinez 734562cc36
Remove quotes from jpeg icon color 2021-07-11 17:29:55 +02:00
siduck76 f6ace73656 minor changes 2021-07-10 09:41:10 +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
siduck76 9f8ce72e55 add preload sizes for lua lsp (#143) 2021-07-09 09:19:24 +05:30
siduck76 c6084220de improve config structure 2021-07-09 09:14:04 +05:30