Compare commits

178 Commits
Author SHA1 Message Date
thread 78cb52db49 ,ee and ,er to clipboard over ssh; lazy-lock.json 2026-09-10 14:58:53 -04:00
thread abe9fde064 let ctrl+c copy work over ssh 2026-09-07 02:38:18 -04:00
thread 91f82334dd theme: chadracula 2026-09-07 02:38:18 -04:00
thread 4c802379d0 theme set: <leader>th 2026-09-07 02:38:18 -04:00
par-thread 6dfb861d4b ,gn and ,sn search next 2026-09-07 02:38:18 -04:00
thread 76412f9ef2 treesitter: ensure_installed elixir 2026-09-07 02:38:18 -04:00
Adam Bellinson 055fdfb769 snacks and other things from work 2026-09-07 02:38:18 -04:00
Adam Bellinson 8a60a569c9 initial 0.11 rebuild 2026-09-07 02:38:17 -04:00
Adam Bellinson a6de358fd4 delete everything 2026-09-07 02:37:47 -04:00
Adam Bellinson 9cca542a88 do/end block treesitter, avante 2026-09-07 02:37:47 -04:00
Adam Bellinson f96bb5c9c7 nil-ls => none-ls and stuff 2026-09-07 02:37:46 -04:00
thread 465246e0c9 go stuff & a mess more 2026-09-07 02:37:34 -04:00
thread 009bce4d73 add fileline.nvim 2026-09-07 02:36:43 -04:00
thread 6ebc5dc0ff snippets 2026-09-07 02:36:43 -04:00
thread 90ee29c838 . 2026-09-07 02:36:43 -04:00
thread be5fae442e .. 2026-09-07 02:36:42 -04:00
thread 16b51b0e6d .. 2026-09-07 02:36:28 -04:00
thread bf3234ca18 .. 2026-09-07 02:36:20 -04:00
thread 649dab28c8 HELLO NvChad 2026-09-07 02:35:31 -04:00
Sidhanth Rathod add44b952d Sponsorship with warp finished. remove banner. 2026-07-03 18:14:30 +05:30
João VítorandSidhanth Rathod d042cc9752 readme fixes
* docs: github (siduck) and themes links, minor indentation fix.

* Update README.md

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>
2026-04-13 06:07:22 +05:30
siduck f437558f23 Update readme with Warp sponsorship 2026-02-07 18:18:50 +05:30
Nick Krichevskyandsiduck 6a0715d3f3 BREAKING CHANGE: Migrate to nvim-treesitter main branch #3295
Users must now use the :TSInstallAll command to install all treesitter parsers defined in their config. So there's no automatic downloading of treesitter parsers like before

tree-sitter-cli is a required dependency now

---------

Co-authored-by: siduck <siduck@tutanota.com>
2026-01-17 23:02:48 +05:30
siduck 30e75dbbdf temporarily pin nvim-treesitter to master branch
closes #3368, will move to main this weekend
2025-12-15 06:53:13 +05:30
ddarfantasy eb209a4a82 Revert: fix: remove un-needed luasnip autocmd NvChad/ui#482 2025-11-06 14:45:24 +05:30
paterkleomenis 51981587fd Fix deprecated lspconfig usage for Neovim 0.11+
Replace conditional setup with new vim.lsp.config and vim.lsp.enable APIs
2025-11-05 15:52:26 +05:30
siduck f107fabe11 fix(mappings): disable when tabufline is disabled
https://github.com/NvChad/ui/pull/514
2025-09-20 06:11:33 +05:30
Corey Cole b5b38ebee5 fix(lsp): backwards compatible client.supports_method (#3339) 2025-09-07 22:29:15 +05:30
sdvcrxandSidhanth Rathod 29ebe31ea6 Set lua_ls runtime version to LuaJIT
* Set lua_ls runtime version to LuaJIT

* Update lspconfig.lua

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>
2025-07-12 20:16:43 +05:30
siduck a792fd1d96 feat(option): splitkeep #3308 2025-07-04 08:53:36 +05:30
siduck f95da3325c Revert "fix(plugins): use main branch for nvim-treesitter #3295"
This reverts commit 0ea8767b74.
2025-06-19 01:02:14 +05:30
N3cr0m4nc3r 63789f3465 perf: use cmp-async-path for async indexing without blocking main UI (#3067) 2025-06-18 19:17:23 +05:30
siduck 0ea8767b74 fix(plugins): use main branch for nvim-treesitter #3295 2025-06-18 19:02:29 +05:30
siduck 478299d345 fix: remove un-needed luasnip autocmd https://github.com/NvChad/ui/issues/482 2025-06-02 09:35:45 +05:30
siduck d4e5b8a10f update mason.nvim repo owner 2025-05-07 21:42:22 +05:30
Levente Polyak d5ea76925f fix(lspconfig): use safer 0.11 compatibility check (#3265)
Previously only the minor version has been checked for equality, which
means it is brittle whenever we reach 0.12. Independently of when this
is expected to be removed, it's simply much safer to check if the
expected functionality is available by testing `vim.lsp.config` for nil.

Fixes 84f8170fda
2025-04-25 02:56:24 +05:30
siduck 4765c80114 fix(lspconfig): use LspAttach for setting on_attach mappings #3264 2025-04-24 22:32:40 +05:30
siduck 84f8170fda fix(lspconfig): temporarily support 0.10 #3251 2025-04-18 11:01:20 +05:30
siduck fea919443f fix(mappings): use x instead of v for lsp format 2025-04-17 07:00:30 +05:30
Kamack38 118d99588b feat(mappings): support range lsp formatting 2025-04-16 23:51:47 +05:30
Sidhanth Rathod 65ffd7dbb9 readme: mention v0.11 as required neovim version 2025-04-15 18:44:39 +05:30
siduck 1b220e97d0 refactor: migrate to vim.lsp.config/enable 2025-04-15 09:46:36 +05:30
siduck 46b15ef1b9 rm: dont remap inbuilt mappings of v0.11 nvim 2025-04-08 18:49:35 +05:30
siduck 6f25b27396 fix: MasonInstallAll not available after 2nd try https://github.com/williamboman/mason.nvim/discussions/1795 2025-01-13 12:12:24 +05:30
Sidhanth Rathod ff34cbb341 Update README.md 2025-01-12 12:02:18 +05:30
siduck bbc3d43db0 rename few plugins org names to nvzone 2024-11-06 12:39:34 +05:30
Toddneal Stallworth 9b04b0c22b Fixed spelling mistakes (#3080) 2024-11-04 09:18:56 +05:30
siduck 09dd13e9c6 chore: add cmds for minty plugin spec 2024-10-19 07:44:49 +05:30
Sidhanth Rathod 8792679a08 rm: un-needed key for whichkey lazy-loading #3047 2024-10-16 19:29:28 +05:30
Rubin Simons f6025f0788 Mapping descriptions in lowercase (small consistency fixes) (#3035)
* All mapping descriptions in lowercase

* Exception for acronyms
2024-10-10 21:50:54 +05:30
Alexander 95d6dbe49b Update terminal mapping description (#3034)
This commit updates the terminal mapping description, replacing 'window'
with 'term.' It better reflects the purpose of the mapping and aligns
with other similar mappings
2024-10-10 19:38:01 +05:30
siduck a69f893e49 update readme 2024-10-07 20:53:04 +05:30
siduck db9d45cc3d rm: un-needed mason.opts.ensure_installed warning 2024-10-05 18:43:25 +05:30
Sidhanth Rathod b83a949d9e Update README.md 2024-10-03 10:05:37 +05:30
Sidhanth Rathod c253efe61f Add Mutable.ai badge 2024-10-01 22:36:49 +05:30
Sidhanth Rathod 7f055761ba Clean (#3006)
* refactor(cmp) : use cmp module from ui repo

https://github.com/NvChad/ui/commit/c4576d8b5bbb6305de53ec017cd6ffad863c98ee I moved it to the ui repo so non nvchad users could achieve the CMP look from NvChad

* remove: <leader>cc blankline mapping

* replace: nvim-colorizer plugin with ui.colorify (BREAKING CHANGE)

https://github.com/NvChad/ui/blob/v2.5/lua/nvconfig.lua#L106

* misc: load nvchad module in config func of ui

instead of plugin/ in ui repo

* clean up

* remove un-needed configs/lazy_nvim.lua file

* rm gitsigns mappings

as it gets frustrating for users to override them

* rm un-needed options var in plugin configs

* add branch name for ui plugin

* trim some loc!

* feat: use modern theme picker for <leader>th

* feat: add volt plugins
2024-10-01 21:50:38 +05:30
qdrs 8d2bb359e4 Typo in mappings.lua description (#2993)
Toggleable horizontal terminal command was described incorrectly.
2024-09-15 11:48:18 +05:30
siduck 0e61fb7656 mason: add warning message for removed option "ensure_installed" 2024-09-06 18:04:10 +05:30
siduck b7a163e232 rm un-needed build function for ui plugin 2024-08-28 16:41:11 +05:30
siduck 5189f3e32c nvimtree: show dotfiles by default #2975 2024-08-21 07:24:10 +05:30
Valde fea5d02d2d update mapping descriptions in mappings.lua (#2963)
* Update mappings.lua

Update mapping descriptions for better cheatsheet display

* Update mappings.lua

Gather toggleables under 'Toggle' panel
2024-08-11 14:11:12 +05:30
siduck 8df1aa9a4d lua lspconfig: include luv lib types #2960 2024-08-10 16:02:51 +05:30
siduck c40c5116c4 use default icons for gitsigns conf 2024-08-01 13:54:44 +05:30
siduck 43208351b7 rm some duplicate default opts of telescope config 2024-08-01 10:07:55 +05:30
siduck c892cfedb2 rm some duplicate default opts of nvimtree config 2024-08-01 09:43:02 +05:30
Randy D. Wallace Jr.andSidhanth Rathod 4a2cefa5c1 Do not use config setting in mason - fix nvim-java (#2948)
* Do not use config setting in mason
* plugins: remove un-needed config() calls

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>
2024-07-27 21:51:10 +05:30
siduck c383cd4463 rm masoninstallAll cmd as its added to ui repo https://github.com/NvChad/NvChad/commit/523cddc57355d5583ea34a04971f9dea7a887bc0 2024-07-27 20:48:52 +05:30
siduck 086a4a58ac rm un-needed branch specs
also move the config func contents ui/plugin dir  25fbc4b
2024-07-27 20:23:10 +05:30
siduck 85b9f56869 add nvchad_feedback() for #2938 to notify users 2024-07-22 10:03:47 +05:30
gale b657b0ef84 chore: prefer luasnip api methods over vim.fn.feedkeys in cmp's spec (#2930) 2024-07-16 10:54:36 +05:30
siduck 231ec0ba72 add missing comma in plugin spec 2024-07-16 06:22:40 +05:30
Bruno Krugel 67378a8352 prevent colorizer to attach to lazy window (#2929) 2024-07-16 06:02:34 +05:30
siduck bf477a6bba mason config: remove default options & add better icons 2024-07-14 08:18:18 +05:30
siduck 0ef037c6db update diagnostic() in default lspconfig.default() 2024-07-09 10:24:47 +05:30
Hackcraft_ 46088dd73e Use a more consistent table element access style (#2914) 2024-07-05 20:35:52 +05:30
siduck 7b73d1111c clean up masoninstall cmd func : https://github.com/NvChad/ui/commit/a5c95d346ddb5c1a6a4bec60eda747a0f1f1ca4d
now users no longer need to have ensure_installed!
2024-06-29 14:49:05 +05:30
siduck 0f0141f098 wrap treesitter hlgroup loaders with pcall #2905 2024-06-28 21:36:39 +05:30
siduck 230b6c867e minor refactoring
moved the lsp.signature to ui repo to be available for non-nvchad users too
2024-06-27 09:28:14 +05:30
siduck 61b336c030 put all plugin specs in one file 2024-06-25 20:30:34 +05:30
siduck 0891fef69f mv nvconfig to ui repo
so non nvchad users can use ui/base46 with chadrc instead of adding all of nvconfig options!
2024-06-23 19:34:08 +05:30
siduck dc8726a9b1 mv /colors to ui repo 2024-06-23 19:28:38 +05:30
siduck 8ad6845386 move some autocmds into ui repo
as the filetype one is related to tabufline and the bufwritepost one is used for reloading nvconfig
2024-06-23 18:48:26 +05:30
siduck 0bb40c9806 nvconfig.term: add winopts option
https://github.com/NvChad/ui/commit/70fb9cd481953d1f372687ae0c62d319749aae03 now users can add window options for each terminal or for all terminals
2024-06-23 17:58:46 +05:30
Thomas Tan 1ee18b5df5 (Windows) Make slashes in path to Mason's bin dir consistent (#2877) 2024-06-22 21:09:06 +05:30
siduck f760ed9fb1 nvconfig: move term config out of ui table 2024-06-22 20:34:44 +05:30
LUFT-AQUILA 4582bb7e3a ui: enable botright split for terminal (#2895) 2024-06-22 20:16:26 +05:30
siduck 164e8cc7fc autocmd: rm un-needed reload code, just require("nvchad") 2024-06-06 08:14:10 +05:30
siduck f21c7f697e luasnip conf: rm useless lazy_load() 2024-06-05 21:56:28 +05:30
siduck e937d2cae0 rm depreceated function: buf_get_option 2024-06-04 09:37:04 +05:30
Saiful Islam 7bfc159f63 fix(MasonInstallAll): mason registry refresh callback (#2867)
Added refresh callback to make sure install package on first command. Right now it's not installing on first command.
2024-06-02 05:56:01 +05:30
siduck d040295269 update readme 2024-06-02 05:46:19 +05:30
HanxxandSidhanth Rathod f9ed3a79db comments: use neovim native commenting (#2861)
* comments: use neovim native commenting

* Comment mapping : remap to gc/gcc

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>
2024-06-01 07:08:32 +05:30
siduck 722b42f2c9 run mason in masonInstallAll cmd 2024-06-01 06:46:29 +05:30
siduck d2f98ccd26 lua_ls config: make workspace.library string[] 2024-05-31 22:01:55 +05:30
Saiful Islam e0641d0cb2 update (MasonInstallAll): install package only if it's missing (#2864)
The ```MasonInstallAll``` command was installing all packages every time when run ```MasonInstallAll``` command. 

But we can make it like that so It will install only missing package not all. 

I think this is better approach. 

Anyway, Thanks for great work.
2024-05-31 15:46:54 +05:30
Alexis Corporal 0496016e18 telescope: remove unnecessary config. (#2852) 2024-05-22 20:24:52 +05:30
siduck 020b8e4428 nvcheatsheet: exclude Opens group #2846 2024-05-19 19:35:06 +05:30
siduck e7d4ff89e9 remove some diagnostic/lsp mappings cuz 0.10 adds them by default 2024-05-19 13:37:17 +05:30
siduck 0f95575937 readme: update nvim version to 0.10 2024-05-18 06:00:19 +05:30
siduck 156eeef8ec rm mapping <ESC> in terminal mode #2817
it could cause other issues too, just as #2817 so removing it
2024-05-03 14:23:02 +05:30
Hassan Ait Nacer 53df5e175a use pre-defined local variable autocmd (#2816) 2024-05-02 05:16:58 +05:30
siduck cbecbe6b4a nvcheatsheet: exclude some groups by default 2024-04-28 16:31:26 +05:30
siduck 4f4c43a2b9 dont capitalize mapping desc
https://github.com/NvChad/ui/commit/b6b55e8055fda90e5722d11da97538f671c7f429
2024-04-28 16:24:59 +05:30
siduck 3b5f1bd42a add excluded_groups feature for nvcheatsheet
https://github.com/NvChad/ui/commit/729bb24921a834bd9cdb58129a23812ee3e1d77e
2024-04-28 16:08:25 +05:30
siduck f8e6c59985 rm size prop from term toggle funcs
Doing so will make the term module take the size value from the chadrc config | check  https://github.com/NvChad/ui/issues/267
2024-04-19 06:57:45 +05:30
Panos Sakkos adeecf701e Rename Lsp keymap descriptions to LSP (#2792)
* rename Lsp keymap descriptions to LSP

* fix error

* refactor LSP in description
2024-04-17 05:29:51 +05:30
Basil Feitknecht 1295e9eafa update options.lua (#2790)
remove unneccessary ```vim.*```
2024-04-16 05:36:54 +05:30
jotihojr 0b1f669caa Extend treesitter highlighting grammer (#2783)
- luadoc: lua type annotation highlighting
- printf: lua string.format highlighting
2024-04-11 12:02:28 +05:30
Đ - DEV a6bd512829 add missing mapping for finding marks (#2782) 2024-04-10 17:37:52 +05:30
siduck 6833c60694 add default hl for term
so floating term windows wont have that darker bg anymore!
2024-03-26 13:26:00 +05:30
siduck 32d8a1fdff make nvconfig base46.integrations support new integrations only
https://github.com/NvChad/base46/commit/0f933db516d4fd543c8ce4b77ea97ed22ff67217 so now users will just have to add the new integrations name instead of including default ones too
2024-03-24 08:11:01 +05:30
siduck 82413d957e disable colornames in nvim-colorizer 2024-03-24 06:07:53 +05:30
siduck e5f8a38ae3 reload chadrc in autocmd 2024-03-19 09:32:01 +05:30
siduck 2e54fce028 add nvchad_types back & conform plugin 2024-03-18 06:29:28 +05:30
siduck 178bf21fde rm outdated info 2024-03-16 07:48:33 +05:30
siduck 8df62c803d rm useless code 2024-03-15 09:05:43 +05:30
siduck b94c57954f enable git by default for nvimtree 2024-03-15 06:37:04 +05:30
siduck 80c2e01c75 load blankline highlights after its setup() too https://github.com/lukas-reineke/indent-blankline.nvim/issues/754 2024-03-14 11:15:37 +05:30
siduck cf1db9821a use has(win32) func to detect windows #2690 2024-03-10 20:00:40 +05:30
siduck 259274a624 rm dead base46 integration from nvconfig 2024-03-10 19:18:10 +05:30
William Sedlacek 96ba9ceb0c add vim.g.vscode_snippets_exclude option (#2715)
The `exclude` option for luasnip is useful for disabling snippets which a user may not want on by default.

For example the `all` option includes a snippet for `timeHMS` which always gets caught by `cmp` when typing `ts` for me which means all my typescript files end up as `file.16:07:21`
2024-03-10 07:01:07 +05:30
siduck 6fb5c313ed update branch for base46/ui plugin 2024-03-09 21:37:34 +05:30
siduck 6b40fb590f use vim.o instead of vim.opt for non tb opts 2024-03-09 18:13:19 +05:30
siduck bbc2cbaae6 rm including types in default lspconfig lua_lsp setup 2024-03-09 15:41:16 +05:30
siduck 166bb9beba rm some useless comments 2024-03-09 13:00:51 +05:30
siduck 2cf989cf31 rm useless term option 2024-03-08 19:46:31 +05:30
siduck 634f6d55de update some module paths 2024-03-07 06:50:13 +05:30
siduck 2282f9d338 rm termguicolors opt as its loaded in base46 2024-03-05 21:36:34 +05:30
Sidhanth Rathod c4db8736ce rm useless command 2024-03-05 08:10:54 +05:30
siduck f6af7e8a29 rm un-needed require 2024-03-05 08:04:07 +05:30
siduck 6608363bd9 disable semantic tokens in on_init, in lspconfig.lua 2024-03-05 08:02:28 +05:30
siduck 168274038c add nvchad colorscheme in colors/ 2024-03-04 22:44:44 +05:30
siduck b17c4d9e86 mv nvconfig to lua/ 2024-03-04 11:56:40 +05:30
siduck e307a4eacf better plugin structure 2024-03-04 08:18:44 +05:30
siduck 73bf6c437f misc 2024-03-04 08:07:10 +05:30
siduck 7dc8c6d0b2 initial starter dir structure; 2024-02-29 22:03:20 +05:30
siduck 5d69a0d0f9 rm un-needed dofile call 2024-02-29 21:50:47 +05:30
siduck adf67560ce misc 2024-02-29 08:00:50 +05:30
siduck cd10647dd6 add mason bootstrap in main bootstrap file only 2024-02-28 20:13:34 +05:30
siduck 21753150d4 misc clean 2 2024-02-27 19:37:57 +05:30
siduck afd8870358 misc clean 2024-02-27 12:31:36 +05:30
siduck a5fc21b4f1 add some vim* tsparsers in treesitter config 2024-02-26 05:35:22 +05:30
siduck ce6e3d19a7 rm useless util function 2024-02-25 19:42:50 +05:30
siduck 4b1bca5303 clean mapping syntax 2024-02-25 08:43:48 +05:30
Jhon VidalandSidhanth Rathod 9414658e35 fix: mapping update for new version of indent-blankline plugin (#2683)
* fix: mapping update for new version of indent-blankline plugin

obsolete function, correcting for the new version of said indent-blankline plugin

* improve blankline mapping
---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>
2024-02-23 07:58:59 +05:30
siduck ddef3aa172 add default hlgroup for term wins 2024-02-19 20:39:38 +05:30
siduck 56cc2d757a reload editorconfig on User FilePost event only if enabled #2672 2024-02-17 06:43:46 +05:30
siduck 59082a8f28 add float opts for term feature 2024-02-02 09:11:04 +05:30
siduck b2e2b15b45 fix editorConfig indent opts not applying on certain fts #2633 2024-01-28 21:33:38 +05:30
Grigorii KhvatskiiandSidhanth Rathod 0333185bfc Add support for non-interactive bootstrapping (#2528)
https://github.com/NvChad/NvChad/pull/2528#issuecomment-1834599074

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>
2024-01-02 17:11:14 +05:30
siduck a439de385b check for empty/nil mason ensure_installed table #2580 2023-12-27 19:50:21 +05:30
siduck d7798fb74a remove telescope fzf extension #2571 2023-12-24 16:32:04 +05:30
Vitor Boschi da SilvaandSidhanth Rathod bfd0ea7dcd [feat] Make gitsigns init function async (#2538)
* [feat] Make gitsigns init function async

This function is running git and also initializing a shell, which can be
a relatively slow operation. By leveraging the jobs api, we run the
command in background, reducing the time it takes for the buffer to be
available to the user. It also uses the list format for the job, which
allow us to bypass the shell entirely.

* performance: use uv.cwd() instead of fn.expand 

benchmarked luv's cwd and it seems to be 20x faster than the expand function

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>
2023-12-08 20:59:05 +05:30
Gean Marroquin ffa83d57f0 remove Search, IncSearch and CurSearch highlights from cmp windows (#2490) 2023-11-13 09:54:26 +05:30
莊加旭 (Max Chuang) 37c328ab2a fix typo (#2483) 2023-11-12 07:14:21 +05:30
siduck a88c68f911 set cursorlineopt=number #865 2023-10-31 05:43:02 +05:30
siduck 48f1bb702d include loading of treesitter hlgroups 2023-10-28 09:34:28 +05:30
TheFedaikin da85f7fbcd feat(mappings): make <esc> a cmd to remove flickering (#2456) 2023-10-27 06:01:56 +05:30
Panos Sakkos ccdf0dda11 Ignore .DS_Store files (#2463)
Ignores macos .DS_Store files
2023-10-27 06:01:51 +05:30
cc3289639b Breaking Change for base46 extended_integrations | Improve syntax (#2459)
* performance: avoid reloading config (#2360)

* performance: avoid reloading config

* Rm outdated info in readme

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>

* update nvchad load_config result path

* Update utils.lua

* update branch names

* Fix unreachable mappings for the lsp (#2443)

* add option for base46 integrations

* rm nvchad_theme global

* use correct conf path in lspconfig
 

---------

Co-authored-by: georgejean <jeangeorge385@yahoo.fr>
Co-authored-by: KorigamiK <72932688+KorigamiK@users.noreply.github.com>
2023-10-24 06:45:17 +05:30
Sidhanth Rathod cb27ae0ed1 update branch names for ui/base46 plugin 2023-10-17 15:25:13 +05:30
KorigamiK 35ee0bc81d Fix unreachable mappings for the lsp (#2443) 2023-10-17 07:56:43 +05:30
umlx5h 445d32c19f Add CTRL-w key to whichkey lazyloading (#2446) 2023-10-17 07:56:39 +05:30
Sidhanth Rathodandgeorgejean 5748536742 performance: avoid reloading config table #2360 (#2444)
* performance: avoid reloading config (#2360)

* performance: avoid reloading config

* Rm outdated info in readme

---------

Co-authored-by: Sidhanth Rathod <siduck@tutanota.com>

* update nvchad load_config result path

* update branch names

---------

Co-authored-by: georgejean <jeangeorge385@yahoo.fr>
2023-10-16 07:24:14 +05:30
siduck ed18649e94 statusline: dont reload if theme is custom
this will prevent auto-reload of statusline , good for non custom statusline users
2023-10-09 17:13:11 +05:30
Sidhanth Rathod 5261eb330b Rm outdated info in readme 2023-10-02 13:52:22 +05:30
siduck 0d2265aa37 rm outdated link from readme 2023-10-02 13:49:24 +05:30
siduck 47e9ce90ff use slim chars for blankline indent
also enable indent markers in nvimtree
2023-10-01 11:15:23 +05:30
siduck f48ff142f0 migrate to blankline v3.0 ( breaking change ) 2023-09-28 11:22:12 +05:30
siduck 4a8fb69157 lspconfig file: place default conf in a function
This will make sure that whenever the onattach or capabilities is pulled from the default lspconfig file, thosse dofile etc code ( which is now in defautls func ) wont be called , like before.
2023-09-28 07:22:02 +05:30
siduck cb18b424b9 misc 2023-09-27 06:14:48 +05:30
siduck 1afbaef5c7 properly disable lsp signature 2023-09-26 20:41:19 +05:30
siduck d58ec3f55d properly disable lsp signature
https://github.com/NvChad/ui/pull/188#issuecomment-1735510051
2023-09-26 18:51:34 +05:30
siduck 17a8959bea add option for term auto_insert 2023-09-26 18:32:15 +05:30
siduck 1b20da0115 update version in core/default_config.lua 2023-09-26 11:28:45 +05:30
siduck d9b3980e62 update ui plugin branch 2023-09-25 12:33:22 +05:30
siduck 92b7f38e83 rm nvterm & use ui.term related mappings 2023-09-25 12:28:05 +05:30
siduck e868fab1f2 add options for term module win resize vals 2023-09-25 12:25:09 +05:30
28 changed files with 820 additions and 418 deletions
-161
View File
@@ -1,161 +0,0 @@
# [CONTRIBUTING](https://nvchad.github.io/contribute)
## NvChad install for contributors
If you wish to contribute to NvChad, you should:
1. [create a fork on GitHub](https://docs.github.com/en/get-started/quickstart/fork-a-repo)
2. clone your fork to your machine
- For ssh:
```shell
$ git clone git@github.com:<YOUR GITHUB USERNAME>/NvChad.git ~/.config/nvim
```
- For https:
```shell
$ git clone https://github.com/<YOUR GITHUB USERNAME>/NvChad.git ~/.config/nvim
```
3. [add a new remote repo to track](https://www.atlassian.com/git/tutorials/git-forks-and-upstreams)
- this means you can push/pull as normal to your own repo, but also easily track & update from the NvChad repo
- for ssh:
```shell
$ git remote add upstream git@github.com:NvChad/NvChad.git
```
- for https:
```shell
$ git remote add upstream https://github.com/NvChad/NvChad.git
```
4. any time you create a branch to do some work, use
```shell
$ git fetch upstream && git checkout -b dev-myFEAT upstream/main
```
5. only use the **--rebase** flag to update your dev branch
- this means that there are no `Merge NvChad/main into devBranch` commits, which are to be avoided
```shell
$ git pull upstream --rebase
```
## Things to know before contributing
- When making a PR (pull request), please be very descriptive about what you've done!
- PR titles should be formatted with 'fix', 'chore' or 'feat'. ex: `feat: add new plugin`
- PRs should follow the pull request formats where applicable
- We are open to all PRs, but may decline some for a myriad of reasons. Though don't be discouraged! We'll still be open to discussions.
- PR's are always welcomed however NvChad aims to be less bloated. So PR's regarding existing plugin's enhancement and creating new features with existing plugins itself ( without adding a new plugin), bug fixes and corrections are more encouraged.
- NvChad won't keep adding more and more features (like adding new plugins most likely) as requested if they feel unneeded and aren't usable by the majority!! If you think the plugin you want to be added is very useful and many NvChaders would find it useful, then such feature's PR is welcomed!
- But adding specific features like adding config for [wakatime](https://github.com/wakatime/vim-wakatime) etc will be added in this [chad user configs](https://github.com/NvChad/NvChad/wiki/Chad-user-configs). This lets the user select the things only they want ( adding configs from extra configs ).
## How to remove or edit commits from your PR
> You may have been directed here to remove a commit such as a merge commit: `Merge NvChad/main into devBranch` from your PR
> As these commands edit your git history, you may need to **force push** with `git push origin --force`
1. Run the following:
```
$ git rebase -i HEAD~<NUMBER OF COMMITS TO GO BACK>
```
<details><summary>Example</summary>
<p>
```shell
$ git rebase -i HEAD~4
```
```shell
pick 28b2dcb statusline add lsp status
pick dad9a39 feat: Added lsp radial progress
pick 68f72f1 add clickable btn for exiting nvim
pick b281b53 avoid using q! for quitting vim
# Rebase 52b655b..b281b53 onto 52b655b (4 commands)
#
# Commands:
# p, pick <commit> = use commit
# r, reword <commit> = use commit, but edit the commit message
# e, edit <commit> = use commit, but stop for amending
# s, squash <commit> = use commit, but meld into previous commit
# f, fixup <commit> = like "squash", but discard this commit's log message
# x, exec <command> = run command (the rest of the line) using shell
# b, break = stop here (continue rebase later with 'git rebase --continue')
# d, drop <commit> = remove commit
# l, label <label> = label current HEAD with a name
# t, reset <label> = reset HEAD to a label
# m, merge [-C <commit> | -c <commit>] <label> [# <oneline>]
# . create a merge commit using the original merge commit's
# . message (or the oneline, if no original merge commit was
# . specified). Use -c <commit> to reword the commit message.
#
# These lines can be re-ordered; they are executed from top to bottom.
#
# If you remove a line here THAT COMMIT WILL BE LOST.
#
# However, if you remove everything, the rebase will be aborted.
#
# Note that empty commits are commented out
```
</p>
</details>
2. Change the `pick` commands to whatever you wish, you may wish to `d` `drop` or `e` `edit` a commit. Then save & quit this git file to run it.
<details><summary>Example</summary>
<p>
```shell {3,4}
pick 28b2dcb statusline add lsp status
pick dad9a39 feat: Added lsp radial progress
edit 68f72f1 add clickable btn for exiting nvim
d b281b53 avoid using q! for quitting vim
# Rebase 52b655b..b281b53 onto 52b655b (4 commands)
#
# Commands:
# p, pick <commit> = use commit
# r, reword <commit> = use commit, but edit the commit message
# e, edit <commit> = use commit, but stop for amending
# s, squash <commit> = use commit, but meld into previous commit
# f, fixup <commit> = like "squash", but discard this commit's log message
# x, exec <command> = run command (the rest of the line) using shell
# b, break = stop here (continue rebase later with 'git rebase --continue')
# d, drop <commit> = remove commit
# l, label <label> = label current HEAD with a name
# t, reset <label> = reset HEAD to a label
# m, merge [-C <commit> | -c <commit>] <label> [# <oneline>]
# . create a merge commit using the original merge commit's
# . message (or the oneline, if no original merge commit was
# . specified). Use -c <commit> to reword the commit message.
#
# These lines can be re-ordered; they are executed from top to bottom.
#
# If you remove a line here THAT COMMIT WILL BE LOST.
#
# However, if you remove everything, the rebase will be aborted.
#
# Note that empty commits are commented out
```
</p>
</details>
3. If you picked `drop` you are done, if you picked `edit` then edit your files, then run:
```shell
$ git add <files>
```
4. Once you have edited & added your files, run:
```shell
$ git rebase --continue
```
5. You will likely need to push using:
```shell
$ git push origin --force
```
## Help
For help with contributing and anything else nvChad related join the [discord](https://discord.gg/VyPxsGArXc)
-3
View File
@@ -1,3 +0,0 @@
patreon: siduck
ko_fi: siduck
custom: ["https://www.buymeacoffee.com/siduck", "https://www.paypal.com/paypalme/siduck76"]
-34
View File
@@ -1,34 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
<!-- Before reporting: update nvchad to the latest version,read breaking changes page,search existing issues. -->
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- Operating System
- Terminal
- Version of Neovim
**Additional context**
Add any other context about the problem here.
-8
View File
@@ -1,8 +0,0 @@
blank_issues_enabled: false
contact_links:
- name: Wiki
url: https://github.com/siduck76/NvChad/wiki
about: "Walks you through how to use and Configure NvChad."
- name: Visit our gitter chat
url: https://gitter.im/neovim-dotfiles/community
about: "A place where we dicuss NvChad related stuff."
-23
View File
@@ -1,23 +0,0 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem was.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
**Screenshot**
Maybe a screenshot of the feature
-14
View File
@@ -1,14 +0,0 @@
Fixes Issue # (If it doesn't fix an issue then delete this line)
Features Added:
- Plugin Name (Add links if possible too)
Reasoning:
List why the feature is needed
Speed (If applicable):
Show the impact on the speed of nvChad
Other:
Anything else relevant goes here
-16
View File
@@ -1,16 +0,0 @@
(Make sure your title is either: 'fix', 'chore', or 'feat' then your title. ex: `fix: add new plugin`)
Fixes Issue # (If it doesn't fix an issue then delete this line)
Plugins Added:
- [Plugin Name](Plugin Link)
- [Plugin Name](Plugin Link)
Reasoning:
List why the plugin(s) should be added
Speed:
Show the impact on the speed of nvChad
Other:
Anything else relevant goes here
-122
View File
@@ -1,122 +0,0 @@
<h1 align="center">NvChad</h1>
<div align="center">
<a href="https://nvchad.com/">Home</a>
<span> • </span>
<a href="https://nvchad.com/docs/quickstart/install">Install</a>
<span> • </span>
<a href="https://nvchad.com/docs/contribute">Contribute</a>
<span> • </span>
<a href="https://github.com/NvChad/NvChad#gift_heart-support">Support</a>
<span> • </span>
<a href="https://nvchad.com/docs/features">Features</a>
<p></p>
</div>
<div align="center">
[![Neovim Minimum Version](https://img.shields.io/badge/Neovim-0.9.0-blueviolet.svg?style=flat-square&logo=Neovim&color=90E59A&logoColor=white)](https://github.com/neovim/neovim)
[![GitHub Issues](https://img.shields.io/github/issues/NvChad/NvChad.svg?style=flat-square&label=Issues&color=d77982)](https://github.com/NvChad/NvChad/issues)
[![Discord](https://img.shields.io/discord/869557815780470834?color=738adb&label=Discord&logo=discord&logoColor=white&style=flat-square)](https://discord.gg/gADmkJb9Fb)
[![Matrix](https://img.shields.io/badge/Matrix-40aa8b.svg?style=flat-square&logo=Matrix&logoColor=white)](https://matrix.to/#/#nvchad:matrix.org)
[![Telegram](https://img.shields.io/badge/Telegram-blue.svg?style=flat-square&logo=Telegram&logoColor=white)](https://t.me/DE_WM)
</div>
## Showcase
<img src="https://nvchad.com/features/nvdash.webp">
<img src="https://nvchad.com/banner.webp">
<img src="https://nvchad.com/screenshots/onedark.webp">
<img src="https://nvchad.com/screenshots/rxyhn1.webp">
## What is it?
- NvChad is a neovim config written in lua aiming to provide a base configuration with very beautiful UI and blazing fast startuptime (around 0.02 secs ~ 0.07 secs). We tweak UI plugins such as telescope, nvim-tree, bufferline etc well to provide an aesthetic UI experience.
- Lazy loading is done 93% of the time meaning that plugins will not be loaded by default, they will be loaded only when required also at specific commands, events etc. This lowers the startuptime and it was like 0.07~ secs tested on an old pentium machine 1.4ghz + 4gb ram & HDD.
- NvChad isn't a framework! It's supposed to be used as a "base" config, so users can tweak the defaults well, and also remove the things they don't like in the default config and build their config on top of it. Users can tweak the entire default config while staying in their custom config (lua/custom dir). This is the control center of the user's config and gitignored so the users can stay up-to-date with NvChad's latest config (main branch) while still controlling it with their chadrc (file that controls entire custom dir).
## Theme Showcase
<details><summary> <b>Images (Click to expand!)</b></summary>
![4 themes](https://nvchad.com/screenshots/four_Themes.webp)
![radium 1](https://nvchad.com/screenshots/radium1.webp)
![radium 2](https://nvchad.com/screenshots/radium2.webp)
![radium 3](https://nvchad.com/screenshots/radium3.webp)
(Note: these are just 4-5 themes, NvChad has around 56 themes)
</details>
## UI related plugins used
<details><summary> <b>Images (Click to expand!)</b></summary>
<h3> Nvim-tree.lua </h3>
Fast file tree:
<kbd><img src="https://nvchad.com/features/nvimtree.webp"></kbd>
<h3> Telescope-nvim </h3>
A fuzzy file finder, picker, sorter, previewer and much more:
<kbd><img src="https://nvchad.com/features/telescope.webp"></kbd>
<h3> Our own statusline written from scratch </h3>
[NvChad UI](https://github.com/NvChad/ui)
<kbd><img src="https://nvchad.com/features/statuslines.webp"></kbd>
<h3> Tabufline (our own pertab bufferline) </h3>
<kbd><img src="https://nvchad.com/features/tabufline.webp"></kbd>
- Here's a [video](https://www.youtube.com/watch?v=V_9iJ96U_k8&ab_channel=siduck) that showcases it.
<h3> NvCheatsheet ( our UI Plugin ) </h3>
<kbd> <img src="https://nvchad.com/features/nvcheatsheet.webp"/></kbd>
</details>
## Plugins list
- Many beautiful themes, theme toggler by our [base46 plugin](https://github.com/NvChad/base46)
- Inbuilt terminal toggling & management with [Nvterm](https://github.com/NvChad/nvterm)
- Lightweight & performant ui plugin with [NvChad UI](https://github.com/NvChad/ui) It provides statusline modules, tabufline ( tabs + buffer manager) , beautiful cheatsheets, NvChad updater, hide & unhide terminal buffers, theme switcher and much more!
- File navigation with [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua)
- Beautiful and configurable icons with [nvim-web-devicons](https://github.com/kyazdani42/nvim-web-devicons)
- Git diffs and more with [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim)
- NeoVim Lsp configuration with [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) and [mason.nvim](https://github.com/williamboman/mason.nvim)
- Autocompletion with [nvim-cmp](https://github.com/hrsh7th/nvim-cmp)
- File searching, previewing image and text files and more with [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim).
- Syntax highlighting with [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
- Autoclosing braces and html tags with [nvim-autopairs](https://github.com/windwp/nvim-autopairs)
- Indentlines with [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim)
- Useful snippets with [friendly snippets](https://github.com/rafamadriz/friendly-snippets) + [LuaSnip](https://github.com/L3MON4D3/LuaSnip).
- Popup mappings keysheet [whichkey.nvim](https://github.com/folke/which-key.nvim)
## History
- I (@siduck i.e creator of NvChad) in my initial days of learning to program wanted a lightweight IDE for writing code, I had a very low end system which was like 1.4ghz pentium + 4gb ram & HDD. I was into web dev stuff so many suggested me to use vscode but that thing was very heavy on my system, It took more ram than my browser! ( minimal ungoogled chromium ) so I never tried it again, sublime text was nice but the fear of using proprietary software XD for a linux user bugged me a lot. Then I tried doom-emacs which looked pretty but it was slow and I was lost within its docs, I tried lunarvim but too lazy to read the docs. Doom-emacs and lunarvim inspired me to make a config which is the prettiest + very fast and simple.
- I'm decent at ricing i.e customizing system and making it look pretty so I posted my neovim rice on [neovim subreddit](https://www.reddit.com/r/neovim/comments/m3xl4f/neovim_rice/), my neovim-dotfiles github repo blew up and then I had to come up with a name, I was amazed by the chad meme lol so I put NvChad as the name, the chad word in here doesnt literally mean the chad guy but in the sense such as chad linux vs windows i.e meaning superior, best etc. NvChad was made for my personal use but it gained some popularity which inspired me to make a public config i.e config usable by many and less hassle to update as everyone's going to use the same base config (NvChad) with their custom modifications (which are gitignored so that wont mess up), without the custom config stuff users would have to keep a track of every commit and copy paste git diffs to manually update nvchad.
## :gift_heart: Support
If you like NvChad and would like to support & appreciate it via donation then I'll gladly accept it.
[![kofi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/siduck)
[![paypal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://paypal.me/siduck13)
[![buymeacoffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/siduck)
[![patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge&logo=patreon&logoColor=white)](https://www.patreon.com/siduck)
## Credits
- [Elianiva](https://github.com/elianiva) helped me with NeoVim Lua related issues many times, NvChad wouldn't exist without his help at all as he helped me in my initial neovim journey!
- @lorvethe for making the beautiful NvChad logo.
-22
View File
@@ -1,22 +0,0 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
exempt-all-issue-assignees: true # doesn't close an issue if someone was assigned to it.
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
exempt-all-pr-assignees: true # doesn't close a pr if someone was assigned to it.
days-before-issue-stale: 30
days-before-pr-stale: 45
days-before-issue-close: 5
days-before-pr-close: 10
-1
View File
@@ -1 +0,0 @@
!/lua/custom/
+122 -6
View File
@@ -1,9 +1,125 @@
**This repo is supposed to be used as config by NvChad users!** <h1 align="center">NvChad</h1>
- The main nvchad repo (NvChad/NvChad) is used as a plugin by this repo. <div align="center">
- So you just import its modules , like `require "nvchad.options" , require "nvchad.mappings"` <a href="https://nvchad.com/">Home</a>
- So you can delete the .git from this repo ( when you clone it locally ) or fork it :) <span> • </span>
<a href="https://nvchad.com/docs/quickstart/install">Install</a>
<span> • </span>
<a href="https://nvchad.com/docs/contribute">Contribute</a>
<span> • </span>
<a href="https://github.com/NvChad/NvChad#gift_heart-support">Support</a>
<span> • </span>
<a href="https://nvchad.com/docs/features">Features</a>
<p></p>
</div>
# Credits <div align="center">
1) Lazyvim starter https://github.com/LazyVim/starter as nvchad's starter was inspired by Lazyvim's . It made a lot of things easier! [![Neovim Minimum Version](https://img.shields.io/badge/Neovim-0.11-blueviolet.svg?style=flat-square&logo=Neovim&color=90E59A&logoColor=white)](https://github.com/neovim/neovim/releases/tag/stable)
[![GitHub Issues](https://img.shields.io/github/issues/NvChad/NvChad.svg?style=flat-square&label=Issues&color=d77982)](https://github.com/NvChad/NvChad/issues)
[![Discord](https://img.shields.io/discord/869557815780470834?color=738adb&label=Discord&logo=discord&logoColor=white&style=flat-square)](https://discord.gg/gADmkJb9Fb)
[![Matrix](https://img.shields.io/badge/Matrix-40aa8b.svg?style=flat-square&logo=Matrix&logoColor=white)](https://matrix.to/#/#nvchad:matrix.org)
[![Telegram](https://img.shields.io/badge/Telegram-blue.svg?style=flat-square&logo=Telegram&logoColor=white)](https://t.me/DE_WM)
</div>
## Showcase
![nvdash](https://github.com/user-attachments/assets/0c7e2c8f-8940-42ea-9c18-7456768d2d05)
<img src="https://nvchad.com/banner.webp">
<img src="https://nvchad.com/screenshots/onedark.webp">
<img src="https://nvchad.com/screenshots/rxyhn1.webp">
## What is it?
- NvChad is a neovim config written in lua aiming to provide a base configuration with very beautiful UI and blazing fast startuptime (around 0.02 secs ~ 0.07 secs). We tweak UI plugins such as telescope, nvim-tree etc well to provide an aesthetic UI experience.
- Lazy loading is done 93% of the time meaning that plugins will not be loaded by default, they will be loaded only when required also at specific commands, events etc. This lowers the startuptime and it was like 0.07~ secs tested on an old pentium machine 1.4ghz + 4gb ram & HDD.
- NvChad is supposed to be used with its [starter config](https://github.com/nvchad/starter), so nvchad main repo ( this repo ) can be imported as a plugin via lazy's import feature and then you can easily use this repo's modules like autocmds etc.
## Theme Showcase
<details><summary> <b>Images (Click to expand!)</b></summary>
![4 themes](https://nvchad.com/screenshots/four_Themes.webp)
![radium 1](https://nvchad.com/screenshots/radium1.webp)
![radium 2](https://nvchad.com/screenshots/radium2.webp)
![radium 3](https://nvchad.com/screenshots/radium3.webp)
(Note: these are just 4-5 themes, NvChad has around [90 themes](https://nvchad.com/themes))
</details>
## UI related plugins used
<details><summary> <b>Images (Click to expand!)</b></summary>
<h3> Nvim-tree.lua </h3>
Fast file tree:
<kbd><img src="https://nvchad.com/features/nvimtree.webp"></kbd>
<h3> Telescope-nvim </h3>
A fuzzy file finder, picker, sorter, previewer and much more:
<kbd><img src="https://nvchad.com/features/telescope.webp"></kbd>
<h3> Our own statusline written from scratch </h3>
[NvChad UI](https://github.com/NvChad/ui)
<kbd><img src="https://nvchad.com/features/statuslines.webp"></kbd>
<h3> Tabufline (our own pertab bufferline) </h3>
<kbd><img src="https://nvchad.com/features/tabufline.webp"></kbd>
- Here's a [video](https://www.youtube.com/watch?v=V_9iJ96U_k8&ab_channel=siduck) that showcases it.
<h3> NvCheatsheet ( our UI Plugin ) </h3>
<kbd> <img src="https://nvchad.com/features/nvcheatsheet.webp"/></kbd>
<h3> Modern Theme Picker </h3>
<kbd> <img src="https://github.com/user-attachments/assets/897e46f1-9ae2-4cc2-8fa2-64eff40a90dd" /> </kbd>
</details>
For detailed info list, check [features page](https://nvchad.com/docs/features)
## Plugins list
- Many beautiful themes, theme toggler by our [base46 plugin](https://github.com/NvChad/base46)
- Lightweight & performant ui plugin with [NvChad UI](https://github.com/NvChad/ui) It provides statusline modules, tabufline ( tabs + buffer manager) , beautiful cheatsheets, NvChad updater, hide & unhide terminal buffers, theme switcher and much more!
- File navigation with [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua)
- Beautiful and configurable icons with [nvim-web-devicons](https://github.com/kyazdani42/nvim-web-devicons)
- Git diffs and more with [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim)
- NeoVim Lsp configuration with [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) and [mason.nvim](https://github.com/williamboman/mason.nvim)
- Autocompletion with [nvim-cmp](https://github.com/hrsh7th/nvim-cmp)
- File searching, previewing text files and more with [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim).
- Syntax highlighting with [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
- Autoclosing braces and html tags with [nvim-autopairs](https://github.com/windwp/nvim-autopairs)
- Indentlines with [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim)
- Useful snippets with [friendly snippets](https://github.com/rafamadriz/friendly-snippets) + [LuaSnip](https://github.com/L3MON4D3/LuaSnip).
- Popup mappings keysheet [whichkey.nvim](https://github.com/folke/which-key.nvim)
## History
- I ([@siduck](https://github.com/siduck) i.e creator of NvChad) in my initial days of learning to program wanted a lightweight IDE for writing code, I had a very low end system which was like 1.4ghz pentium + 4gb ram & HDD. I was into web dev stuff so many suggested me to use vscode but that thing was very heavy on my system, It took more ram than my browser! ( minimal ungoogled chromium ) so I never tried it again, sublime text was nice but the fear of using proprietary software XD for a linux user bugged me a lot. Then I tried doom-emacs which looked pretty but it was slow and I was lost within its docs, I tried lunarvim but too lazy to read the docs. Doom-emacs and lunarvim inspired me to make a config which is the prettiest + very fast and simple.
- I'm decent at ricing i.e customizing system and making it look pretty so I posted my neovim rice on [neovim subreddit](https://www.reddit.com/r/neovim/comments/m3xl4f/neovim_rice/), my neovim-dotfiles github repo blew up and then I had to come up with a name, I was amazed by the chad meme lol so I put NvChad as the name, the chad word in here doesn't literally mean the chad guy but in the sense such as chad linux vs windows i.e meaning superior, best etc. NvChad was made for my personal use but it gained some popularity which inspired me to make a public config i.e config usable by many and less hassle to update as everyone's going to use the same base config (NvChad) with their custom modifications (which are gitignored so that won't mess up), without the custom config stuff users would have to keep a track of every commit and copy paste git diffs to manually update nvchad.
## :gift_heart: Support
If you like NvChad and would like to support & appreciate it via donation then I'll gladly accept it.
[![kofi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/siduck)
[![paypal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://paypal.me/siduck13)
[![buymeacoffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/siduck)
[![patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge&logo=patreon&logoColor=white)](https://www.patreon.com/siduck)
## Credits
- [Elianiva](https://github.com/elianiva) helped me with NeoVim Lua related issues many times, helped me in my initial neovim journey!
- @lorvethe for making the beautiful NvChad logo.
+32
View File
@@ -0,0 +1,32 @@
{
"LuaSnip": { "branch": "master", "commit": "0abc8f390b278c3b4aabc4c004ac8a088b65cf24" },
"NvChad": { "branch": "v2.5", "commit": "add44b952d631981614bbb8cfc6f7002f296dfe6" },
"base46": { "branch": "v3.0", "commit": "267954c8663607823f03a3259bb8deb15688212f" },
"bufdelete.nvim": { "branch": "master", "commit": "f6bcea78afb3060b198125256f897040538bcb81" },
"cmp-async-path": { "branch": "main", "commit": "98185a91d49ff5dd249aebf2f7456e18063fa2a0" },
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
"cmp-nvim-lua": { "branch": "main", "commit": "e3a22cb071eb9d6508a156306b102c45cd2d573d" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"conform.nvim": { "branch": "master", "commit": "016802de402556da54c36bd7359b441266b01cdd" },
"elixir-tools.nvim": { "branch": "main", "commit": "b51b48edc668924a6b2f6610f9a0aff34741d20e" },
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
"gitsigns.nvim": { "branch": "main", "commit": "5be654f2232c10ddcad19c1607a67b6b4b78fc29" },
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
"mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
"menu": { "branch": "main", "commit": "7a0a4a2896b715c066cfbe320bdc048091874cc6" },
"minty": { "branch": "main", "commit": "aafc9e8e0afe6bf57580858a2849578d8d8db9e0" },
"nvim-autopairs": { "branch": "master", "commit": "430522f95fe4fb7c511ec64f8c1a90cc6a66c05c" },
"nvim-cmp": { "branch": "main", "commit": "2ffe79f1f021def8dd1fcd81deb16f1bb0d989f3" },
"nvim-lspconfig": { "branch": "master", "commit": "615d7b2712efb2f530a83a9d0466acafba6b1d6f" },
"nvim-tree.lua": { "branch": "master", "commit": "b2aadda94b107480c48e548d6db51c6840b7b33c" },
"nvim-treesitter": { "branch": "main", "commit": "0d0969030ad955b510d7c8012b40252a25c12a6d" },
"nvim-web-devicons": { "branch": "master", "commit": "5f032a85be210cd1c6ac98861eb3b187ff3bd5eb" },
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
"snacks.nvim": { "branch": "main", "commit": "882c996cf28183f4d63640de0b4c02ec886d01f2" },
"telescope.nvim": { "branch": "master", "commit": "40aedd8a68c78a656a10a8d62d80c54af59420fb" },
"ui": { "branch": "v3.0", "commit": "6ced1135d2d1f87ae01fe0995977372eef42cd03" },
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
"volt": { "branch": "main", "commit": "620de1321f275ec9d80028c68d1b88b409c0c8b1" },
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
}
+1 -1
View File
@@ -14,7 +14,7 @@ local M = {}
M.base46 = { M.base46 = {
theme = "wombat", theme = "chadracula",
-- hl_override = { -- hl_override = {
-- Comment = { italic = true }, -- Comment = { italic = true },
+9 -2
View File
@@ -25,8 +25,15 @@ map("n", "<leader>k", "<C-w>k", { desc = "Focus upper split" })
map("n", "<leader>l", "<C-w>l", { desc = "Focus right split" }) map("n", "<leader>l", "<C-w>l", { desc = "Focus right split" })
-- File operations -- File operations
map("n", "<leader>ee", ':e <C-R>=expand("%:p:h" . "/" <CR><CR>)', { desc = "Copy relative path to file" }) -- setreg("+") goes through the clipboard provider, so it works over SSH via OSC 52
map("n", "<leader>er", ":!echo -n % | pbcopy<CR>", { desc = "Copy absolute path to file" }) local function copy_path(expr, msg)
return function()
vim.fn.setreg("+", vim.fn.expand(expr))
vim.notify(msg)
end
end
map("n", "<leader>ee", copy_path("%", "Relative path copied to clipboard"), { desc = "Copy relative path to file" })
map("n", "<leader>er", copy_path("%:p", "Absolute path copied to clipboard"), { desc = "Copy absolute path to file" })
-- map("n", "<leader>gn", ":Telescope resume<CR>", { desc = "Resume telescope" }) -- map("n", "<leader>gn", ":Telescope resume<CR>", { desc = "Resume telescope" })
map("n", "<leader>eu", '!!python -c "import uuid; print(uuid.uuid4())"<CR>', { desc = "Drop fresh uuid4" }) map("n", "<leader>eu", '!!python -c "import uuid; print(uuid.uuid4())"<CR>', { desc = "Drop fresh uuid4" })
+5 -5
View File
@@ -63,11 +63,11 @@ map("n", "<leader>e", "<cmd>NvimTreeFocus<CR>", { desc = "nvimtree focus window"
-- map("n", "<leader>cm", "<cmd>Telescope git_commits<CR>", { desc = "telescope git commits" }) -- map("n", "<leader>cm", "<cmd>Telescope git_commits<CR>", { desc = "telescope git commits" })
-- map("n", "<leader>gt", "<cmd>Telescope git_status<CR>", { desc = "telescope git status" }) -- map("n", "<leader>gt", "<cmd>Telescope git_status<CR>", { desc = "telescope git status" })
-- map("n", "<leader>pt", "<cmd>Telescope terms<CR>", { desc = "telescope pick hidden term" }) -- map("n", "<leader>pt", "<cmd>Telescope terms<CR>", { desc = "telescope pick hidden term" })
--
-- map("n", "<leader>th", function() map("n", "<leader>th", function()
-- require("nvchad.themes").open() require("nvchad.themes").open()
-- end, { desc = "telescope nvchad themes" }) end, { desc = "telescope nvchad themes" })
--
-- map("n", "<leader>ff", "<cmd>Telescope find_files<cr>", { desc = "telescope find files" }) -- map("n", "<leader>ff", "<cmd>Telescope find_files<cr>", { desc = "telescope find files" })
-- map( -- map(
-- "n", -- "n",
+42
View File
@@ -0,0 +1,42 @@
local autocmd = vim.api.nvim_create_autocmd
-- user event that loads after UIEnter + only if file buf is there
autocmd({ "UIEnter", "BufReadPost", "BufNewFile" }, {
group = vim.api.nvim_create_augroup("NvFilePost", { clear = true }),
callback = function(args)
local file = vim.api.nvim_buf_get_name(args.buf)
local buftype = vim.api.nvim_get_option_value("buftype", { buf = args.buf })
if not vim.g.ui_entered and args.event == "UIEnter" then
vim.g.ui_entered = true
end
if file ~= "" and buftype ~= "nofile" and vim.g.ui_entered then
vim.api.nvim_exec_autocmds("User", { pattern = "FilePost", modeline = false })
vim.api.nvim_del_augroup_by_name "NvFilePost"
vim.schedule(function()
vim.api.nvim_exec_autocmds("FileType", {})
if vim.g.editorconfig then
require("editorconfig").config(args.buf)
end
end)
end
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "*",
callback = function()
pcall(vim.treesitter.start)
end,
})
local create_cmd = vim.api.nvim_create_user_command
create_cmd("TSInstallAll", function()
local spec = require("lazy.core.config").plugins["nvim-treesitter"]
local opts = type(spec.opts) == "table" and spec.opts or {}
require("nvim-treesitter").install(opts.ensure_installed)
end, {})
+57
View File
@@ -0,0 +1,57 @@
dofile(vim.g.base46_cache .. "cmp")
local cmp = require "cmp"
local options = {
completion = { completeopt = "menu,menuone" },
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
},
mapping = {
["<C-p>"] = cmp.mapping.select_prev_item(),
["<C-n>"] = cmp.mapping.select_next_item(),
["<C-d>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.close(),
["<CR>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Insert,
select = true,
},
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif require("luasnip").expand_or_jumpable() then
require("luasnip").expand_or_jump()
else
fallback()
end
end, { "i", "s" }),
["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif require("luasnip").jumpable(-1) then
require("luasnip").jump(-1)
else
fallback()
end
end, { "i", "s" }),
},
sources = {
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "buffer" },
{ name = "nvim_lua" },
{ name = "async_path" },
},
}
return vim.tbl_deep_extend("force", options, require "nvchad.cmp")
+8
View File
@@ -0,0 +1,8 @@
dofile(vim.g.base46_cache .. "git")
return {
signs = {
delete = { text = "󰍵" },
changedelete = { text = "󱕖" },
},
}
+86
View File
@@ -0,0 +1,86 @@
local M = {}
local map = vim.keymap.set
-- export on_attach & capabilities
M.on_attach = function(_, bufnr)
local function opts(desc)
return { buffer = bufnr, desc = "LSP " .. desc }
end
map("n", "gD", vim.lsp.buf.declaration, opts "Go to declaration")
map("n", "gd", vim.lsp.buf.definition, opts "Go to definition")
map("n", "<leader>wa", vim.lsp.buf.add_workspace_folder, opts "Add workspace folder")
map("n", "<leader>wr", vim.lsp.buf.remove_workspace_folder, opts "Remove workspace folder")
map("n", "<leader>wl", function()
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end, opts "List workspace folders")
map("n", "<leader>D", vim.lsp.buf.type_definition, opts "Go to type definition")
map("n", "<leader>ra", require "nvchad.lsp.renamer", opts "NvRenamer")
end
-- disable semanticTokens
M.on_init = function(client, _)
if vim.fn.has "nvim-0.11" ~= 1 then
if client.supports_method "textDocument/semanticTokens" then
client.server_capabilities.semanticTokensProvider = nil
end
else
if client:supports_method "textDocument/semanticTokens" then
client.server_capabilities.semanticTokensProvider = nil
end
end
end
M.capabilities = vim.lsp.protocol.make_client_capabilities()
M.capabilities.textDocument.completion.completionItem = {
documentationFormat = { "markdown", "plaintext" },
snippetSupport = true,
preselectSupport = true,
insertReplaceSupport = true,
labelDetailsSupport = true,
deprecatedSupport = true,
commitCharactersSupport = true,
tagSupport = { valueSet = { 1 } },
resolveSupport = {
properties = {
"documentation",
"detail",
"additionalTextEdits",
},
},
}
M.defaults = function()
dofile(vim.g.base46_cache .. "lsp")
require("nvchad.lsp").diagnostic_config()
vim.api.nvim_create_autocmd("LspAttach", {
callback = function(args)
M.on_attach(_, args.buf)
end,
})
local lua_lsp_settings = {
Lua = {
runtime = { version = "LuaJIT" },
workspace = {
library = {
vim.fn.expand "$VIMRUNTIME/lua",
vim.fn.stdpath "data" .. "/lazy/ui/nvchad_types",
vim.fn.stdpath "data" .. "/lazy/lazy.nvim/lua/lazy",
"${3rd}/luv/library",
},
},
},
}
-- Use new vim.lsp.config API for Neovim 0.11+
vim.lsp.config("*", { capabilities = M.capabilities, on_init = M.on_init })
vim.lsp.config("lua_ls", { settings = lua_lsp_settings })
vim.lsp.enable "lua_ls"
end
return M
+23
View File
@@ -0,0 +1,23 @@
-- vscode format
require("luasnip.loaders.from_vscode").lazy_load { exclude = vim.g.vscode_snippets_exclude or {} }
require("luasnip.loaders.from_vscode").lazy_load { paths = vim.g.vscode_snippets_path or "" }
-- snipmate format
require("luasnip.loaders.from_snipmate").load()
require("luasnip.loaders.from_snipmate").lazy_load { paths = vim.g.snipmate_snippets_path or "" }
-- lua format
require("luasnip.loaders.from_lua").load()
require("luasnip.loaders.from_lua").lazy_load { paths = vim.g.lua_snippets_path or "" }
-- fix luasnip #258
vim.api.nvim_create_autocmd("InsertLeave", {
callback = function()
if
require("luasnip").session.current_nodes[vim.api.nvim_get_current_buf()]
and not require("luasnip").session.jump_active
then
require("luasnip").unlink_current()
end
end,
})
+15
View File
@@ -0,0 +1,15 @@
dofile(vim.g.base46_cache .. "mason")
return {
PATH = "skip",
ui = {
icons = {
package_pending = "",
package_installed = "",
package_uninstalled = "",
},
},
max_concurrent_installers = 10,
}
+34
View File
@@ -0,0 +1,34 @@
dofile(vim.g.base46_cache .. "nvimtree")
return {
filters = { dotfiles = false },
disable_netrw = true,
hijack_cursor = true,
sync_root_with_cwd = true,
update_focused_file = {
enable = true,
update_root = false,
},
view = {
width = 30,
preserve_window_proportions = true,
},
renderer = {
root_folder_label = false,
highlight_git = true,
indent_markers = { enable = true },
icons = {
glyphs = {
default = "󰈚",
folder = {
default = "",
empty = "",
empty_open = "",
open = "",
symlink = "",
},
git = { unmerged = "" },
},
},
},
}
+24
View File
@@ -0,0 +1,24 @@
dofile(vim.g.base46_cache .. "telescope")
return {
defaults = {
prompt_prefix = "",
selection_caret = " ",
entry_prefix = " ",
sorting_strategy = "ascending",
layout_config = {
horizontal = {
prompt_position = "top",
preview_width = 0.55,
},
width = 0.87,
height = 0.80,
},
mappings = {
n = { ["q"] = require("telescope.actions").close },
},
},
extensions_list = { "themes", "terms" },
extensions = {},
}
+8
View File
@@ -0,0 +1,8 @@
pcall(function()
dofile(vim.g.base46_cache .. "syntax")
dofile(vim.g.base46_cache .. "treesitter")
end)
return {
ensure_installed = { "lua", "luadoc", "printf", "vim", "vimdoc" },
}
+109
View File
@@ -0,0 +1,109 @@
local map = vim.keymap.set
map("i", "<C-b>", "<ESC>^i", { desc = "move beginning of line" })
map("i", "<C-e>", "<End>", { desc = "move end of line" })
map("i", "<C-h>", "<Left>", { desc = "move left" })
map("i", "<C-l>", "<Right>", { desc = "move right" })
map("i", "<C-j>", "<Down>", { desc = "move down" })
map("i", "<C-k>", "<Up>", { desc = "move up" })
map("n", "<C-h>", "<C-w>h", { desc = "switch window left" })
map("n", "<C-l>", "<C-w>l", { desc = "switch window right" })
map("n", "<C-j>", "<C-w>j", { desc = "switch window down" })
map("n", "<C-k>", "<C-w>k", { desc = "switch window up" })
map("n", "<Esc>", "<cmd>noh<CR>", { desc = "general clear highlights" })
map("n", "<C-s>", "<cmd>w<CR>", { desc = "general save file" })
map("n", "<C-c>", "<cmd>%y+<CR>", { desc = "general copy whole file" })
map("n", "<leader>n", "<cmd>set nu!<CR>", { desc = "toggle line number" })
map("n", "<leader>rn", "<cmd>set rnu!<CR>", { desc = "toggle relative number" })
map("n", "<leader>ch", "<cmd>NvCheatsheet<CR>", { desc = "toggle nvcheatsheet" })
map({ "n", "x" }, "<leader>fm", function()
require("conform").format { lsp_fallback = true }
end, { desc = "general format file" })
-- global lsp mappings
map("n", "<leader>ds", vim.diagnostic.setloclist, { desc = "LSP diagnostic loclist" })
-- tabufline
if require("nvconfig").ui.tabufline.enabled then
map("n", "<leader>b", "<cmd>enew<CR>", { desc = "buffer new" })
map("n", "<tab>", function()
require("nvchad.tabufline").next()
end, { desc = "buffer goto next" })
map("n", "<S-tab>", function()
require("nvchad.tabufline").prev()
end, { desc = "buffer goto prev" })
map("n", "<leader>x", function()
require("nvchad.tabufline").close_buffer()
end, { desc = "buffer close" })
end
-- Comment
map("n", "<leader>/", "gcc", { desc = "toggle comment", remap = true })
map("v", "<leader>/", "gc", { desc = "toggle comment", remap = true })
-- nvimtree
map("n", "<C-n>", "<cmd>NvimTreeToggle<CR>", { desc = "nvimtree toggle window" })
map("n", "<leader>e", "<cmd>NvimTreeFocus<CR>", { desc = "nvimtree focus window" })
-- telescope
map("n", "<leader>fw", "<cmd>Telescope live_grep<CR>", { desc = "telescope live grep" })
map("n", "<leader>fb", "<cmd>Telescope buffers<CR>", { desc = "telescope find buffers" })
map("n", "<leader>fh", "<cmd>Telescope help_tags<CR>", { desc = "telescope help page" })
map("n", "<leader>ma", "<cmd>Telescope marks<CR>", { desc = "telescope find marks" })
map("n", "<leader>fo", "<cmd>Telescope oldfiles<CR>", { desc = "telescope find oldfiles" })
map("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<CR>", { desc = "telescope find in current buffer" })
map("n", "<leader>cm", "<cmd>Telescope git_commits<CR>", { desc = "telescope git commits" })
map("n", "<leader>gt", "<cmd>Telescope git_status<CR>", { desc = "telescope git status" })
map("n", "<leader>pt", "<cmd>Telescope terms<CR>", { desc = "telescope pick hidden term" })
map("n", "<leader>th", function()
require("nvchad.themes").open()
end, { desc = "telescope nvchad themes" })
map("n", "<leader>ff", "<cmd>Telescope find_files<cr>", { desc = "telescope find files" })
map(
"n",
"<leader>fa",
"<cmd>Telescope find_files follow=true no_ignore=true hidden=true<CR>",
{ desc = "telescope find all files" }
)
-- terminal
map("t", "<C-x>", "<C-\\><C-N>", { desc = "terminal escape terminal mode" })
-- new terminals
map("n", "<leader>h", function()
require("nvchad.term").new { pos = "sp" }
end, { desc = "terminal new horizontal term" })
map("n", "<leader>v", function()
require("nvchad.term").new { pos = "vsp" }
end, { desc = "terminal new vertical term" })
-- toggleable
map({ "n", "t" }, "<A-v>", function()
require("nvchad.term").toggle { pos = "vsp", id = "vtoggleTerm" }
end, { desc = "terminal toggleable vertical term" })
map({ "n", "t" }, "<A-h>", function()
require("nvchad.term").toggle { pos = "sp", id = "htoggleTerm" }
end, { desc = "terminal toggleable horizontal term" })
map({ "n", "t" }, "<A-i>", function()
require("nvchad.term").toggle { pos = "float", id = "floatTerm" }
end, { desc = "terminal toggle floating term" })
-- whichkey
map("n", "<leader>wK", "<cmd>WhichKey <CR>", { desc = "whichkey all keymaps" })
map("n", "<leader>wk", function()
vim.cmd("WhichKey " .. vim.fn.input "WhichKey: ")
end, { desc = "whichkey query lookup" })
+57
View File
@@ -0,0 +1,57 @@
local opt = vim.opt
local o = vim.o
local g = vim.g
-------------------------------------- options ------------------------------------------
o.laststatus = 3
o.showmode = false
o.splitkeep = "screen"
o.clipboard = "unnamedplus"
o.cursorline = true
o.cursorlineopt = "number"
-- Indenting
o.expandtab = true
o.shiftwidth = 2
o.smartindent = true
o.tabstop = 2
o.softtabstop = 2
opt.fillchars = { eob = " " }
o.ignorecase = true
o.smartcase = true
o.mouse = "a"
-- Numbers
o.number = true
o.numberwidth = 2
o.ruler = false
-- disable nvim intro
opt.shortmess:append "sI"
o.signcolumn = "yes"
o.splitbelow = true
o.splitright = true
o.timeoutlen = 400
o.undofile = true
-- interval for writing swap file to disk, also used by gitsigns
o.updatetime = 250
-- go to previous/next line with h,l,left arrow and right arrow
-- when cursor reaches end/beginning of line
opt.whichwrap:append "<>[]hl"
-- disable some default providers
g.loaded_node_provider = 0
g.loaded_python3_provider = 0
g.loaded_perl_provider = 0
g.loaded_ruby_provider = 0
-- add binaries installed by mason.nvim to path
local is_windows = vim.fn.has "win32" ~= 0
local sep = is_windows and "\\" or "/"
local delim = is_windows and ";" or ":"
vim.env.PATH = table.concat({ vim.fn.stdpath "data", "mason", "bin" }, sep) .. delim .. vim.env.PATH
+166
View File
@@ -0,0 +1,166 @@
return {
"nvim-lua/plenary.nvim",
{
"nvchad/base46",
build = function()
require("base46").load_all_highlights()
end,
},
{
"nvchad/ui",
lazy = false,
config = function()
require "nvchad"
end,
},
"nvzone/volt",
"nvzone/menu",
{ "nvzone/minty", cmd = { "Huefy", "Shades" } },
{
"nvim-tree/nvim-web-devicons",
opts = function()
dofile(vim.g.base46_cache .. "devicons")
return { override = require "nvchad.icons.devicons" }
end,
},
{
"lukas-reineke/indent-blankline.nvim",
event = "User FilePost",
opts = {
indent = { char = "", highlight = "IblChar" },
scope = { char = "", highlight = "IblScopeChar" },
},
config = function(_, opts)
dofile(vim.g.base46_cache .. "blankline")
local hooks = require "ibl.hooks"
hooks.register(hooks.type.WHITESPACE, hooks.builtin.hide_first_space_indent_level)
require("ibl").setup(opts)
dofile(vim.g.base46_cache .. "blankline")
end,
},
-- file managing , picker etc
{
"nvim-tree/nvim-tree.lua",
cmd = { "NvimTreeToggle", "NvimTreeFocus" },
opts = function()
return require "nvchad.configs.nvimtree"
end,
},
{
"folke/which-key.nvim",
keys = { "<leader>", "<c-w>", '"', "'", "`", "c", "v", "g" },
cmd = "WhichKey",
opts = function()
dofile(vim.g.base46_cache .. "whichkey")
return {}
end,
},
-- formatting!
{
"stevearc/conform.nvim",
opts = {
formatters_by_ft = { lua = { "stylua" } },
},
},
-- git stuff
{
"lewis6991/gitsigns.nvim",
event = "User FilePost",
opts = function()
return require "nvchad.configs.gitsigns"
end,
},
-- lsp stuff
{
"mason-org/mason.nvim",
cmd = { "Mason", "MasonInstall", "MasonUpdate" },
opts = function()
return require "nvchad.configs.mason"
end,
},
{
"neovim/nvim-lspconfig",
event = "User FilePost",
config = function()
require("nvchad.configs.lspconfig").defaults()
end,
},
-- load luasnips + cmp related in insert mode only
{
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
{
-- snippet plugin
"L3MON4D3/LuaSnip",
dependencies = "rafamadriz/friendly-snippets",
opts = { history = true, updateevents = "TextChanged,TextChangedI" },
config = function(_, opts)
require("luasnip").config.set_config(opts)
require "nvchad.configs.luasnip"
end,
},
-- autopairing of (){}[] etc
{
"windwp/nvim-autopairs",
opts = {
fast_wrap = {},
disable_filetype = { "TelescopePrompt", "vim" },
},
config = function(_, opts)
require("nvim-autopairs").setup(opts)
-- setup cmp for autopairs
local cmp_autopairs = require "nvim-autopairs.completion.cmp"
require("cmp").event:on("confirm_done", cmp_autopairs.on_confirm_done())
end,
},
-- cmp sources plugins
{
"saadparwaiz1/cmp_luasnip",
"hrsh7th/cmp-nvim-lua",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"https://codeberg.org/FelipeLema/cmp-async-path.git",
},
},
opts = function()
return require "nvchad.configs.cmp"
end,
},
{
"nvim-telescope/telescope.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter" },
cmd = "Telescope",
opts = function()
return require "nvchad.configs.telescope"
end,
},
{
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPost", "BufNewFile" },
cmd = { "TSInstall", "TSBufEnable", "TSBufDisable", "TSModuleInfo" },
build = ":TSUpdate | TSInstallAll",
opts = function()
return require "nvchad.configs.treesitter"
end,
},
}
+22
View File
@@ -7,3 +7,25 @@ require "nvchad.options"
vim.g.lua_snippets_path = { vim.fn.stdpath "config" .. "/snippets" } vim.g.lua_snippets_path = { vim.fn.stdpath "config" .. "/snippets" }
-- route "+/* registers through the terminal with OSC 52 when connected over SSH,
-- since xclip/wl-copy on the server can't reach the local clipboard.
-- paste must be present or the whole provider is rejected, but never query the
-- terminal: it generally refuses OSC 52 reads, and clipboard=unnamedplus makes
-- every put read "+", which would block on the query timeout. returning 0 makes
-- puts fall back to the internal register instantly.
if vim.env.SSH_TTY or vim.env.SSH_CONNECTION then
-- nvchad sets clipboard=unnamedplus, which syncs every yank/delete to "+;
-- over SSH only the explicit "+y from Ctrl+C should hit the terminal
vim.o.clipboard = ""
local osc52 = require "vim.ui.clipboard.osc52"
local function no_paste()
return 0
end
vim.g.clipboard = {
name = "osc52",
copy = { ["+"] = osc52.copy "+", ["*"] = osc52.copy "*" },
paste = { ["+"] = no_paste, ["*"] = no_paste },
}
end