Commit Graph

1041 Commits

Author SHA1 Message Date
siduck 936131c00a move ui plugin config to chadrc UI table 2022-11-16 09:53:16 +05:30
siduck d142ac899a use dev branch for ui/base46 plugins
this is temporary, gets easy to test dev changes locally
2022-11-16 09:51:07 +05:30
siduck 99f6b2132e remove alpha plugin 2022-11-15 21:28:04 +05:30
siduck 4971e07f6a rm support for ooold plugin syntax 2022-11-15 18:54:21 +05:30
siduck cdbdd66929 use default mapping for diagnostic goto_next 2022-11-15 18:42:15 +05:30
siduck 4db58e4975 add glyph icon for untracked icon (gitsigns 2022-11-15 18:40:40 +05:30
Uy Ha c6252937b2 use rev-parse instead of status 2022-11-10 10:44:05 +05:30
Uy Ha d3fe3fcc1a enable gitsigns when opening nvim from a none git repository 2022-11-10 10:44:05 +05:30
siduck dc669313c1 avoid flooding mason.nvim binaries path 2022-10-07 19:26:07 +05:30
siduck 00be26275e keep some gitsigns mappings only | rm 0.7v related stuff 2022-10-07 19:26:07 +05:30
Dhruvin Shah b142f4c99d config(cmp): correcting completeopt setup
From the neovim doc,
In Vimscript:
    `set completeopt=menu,menuone,noselect`

In Lua using `vim.o`:
    `vim.o.completeopt = 'menu,menuone,noselect'`

In Lua using `vim.opt`:
    `vim.opt.wildignore = { 'menu', 'menuoune', 'noselect' }`
2022-10-07 19:26:07 +05:30
siduck d2f0fb316b reduce loc 2022-10-07 19:26:07 +05:30
siduck 44b238ad0b add arg to make telescope search through symlink dirs
#1609
2022-10-07 19:26:07 +05:30
Jacob E. Tuz Poot 3fae9d88c5 feat: add buffer mapping for gitsigns 2022-10-07 19:26:07 +05:30
Owen 27560319cc change snippets' priority
Higher priority should be given to the user's own snippets
2022-09-25 06:36:17 +05:30
Akianonymus 74e374ef7b plugins: colorizer: Let colorizer handle the loading 2022-09-15 16:16:43 +05:30
siduck 83572cc15b move tabufline related functions to ui repo 2022-09-15 07:51:13 +05:30
Justin Lee 97062ae15f Added missing key triggers for which-key plugin 2022-09-15 05:47:49 +05:30
siduck 2e5aa786ef add an option to avoid using default plugin defintion opts (#1559) 2022-09-12 07:53:07 +05:30
siduck 8a18f89b03 install binaries from mason.nvm & tsparsers automatically after nvchad install 2022-09-11 01:07:44 +05:30
Rik034 3df9c03eb5 Fixed notify_once() call 2022-09-09 14:56:54 +05:30
siduck 0e6ab04ed7 keep treesitter indenting enabled by default 2022-09-09 09:49:31 +05:30
siduck e8a4158924 Support old plugin syntax too | Cleanup | Misc
use vim.notify to give deprecation warning

    use packer.use directly rather than wrapping around packer.startup

    Do some explicit type checking

Co-authored-by: Akianonymus <anonymus.aki@gmail.com>
2022-09-09 09:39:57 +05:30
siduck d61946d3bf Simplify plugin management even more (#1518) 2022-09-09 09:39:57 +05:30
Lucario387 f0c93c8472 remove gitsigns autocmd on gitsigns load 2022-09-08 17:44:45 +05:30
Lucario387 5db641289d change jk mapping for visual mode only 2022-09-08 16:58:54 +05:30
Lucario387 d617bb5a75 fix pasting in select mode 2022-09-08 16:58:54 +05:30
Akianonymus b34328fb41 plugins: Colorizer: Changes for new config style 2022-09-03 19:48:42 +05:30
nt 7fe754342a Remove unnecessary comment 2022-08-29 19:50:31 +05:30
siduck bf827e0ebd fix #1516 #1517
an autocmd can be used for formatoptions and avoid using bw, read the convo at 39c42ca2bf (r82388570)
2022-08-28 09:14:09 +05:30
Akianonymus 2b41bcd3df core: Move relavent tabufline code to NvChad/ui repo 2022-08-25 17:44:35 +05:30
Akianonymus a23d955656 plugins: alpha: Move alpha related cmd to alpha config
this special handling of statusline should only be done if alpha plugin is used
2022-08-25 17:44:35 +05:30
Akianonymus fe9a7b1651 core|options: Add formatoptions in options | Remove unnecessary autocmd 2022-08-25 17:44:35 +05:30
Akianonymus 9021289421 core: autocmd: Remove 'tabdo wincmd =' on VimResized
this should not be in main config, not every one wants their splits to be of equal size on resize, sometimes i want the split to of smaller size whether the screen is resized or not

this should be in used custom dir
2022-08-25 17:44:35 +05:30
Aki 4ac1ece326 Update lazy_load.lua 2022-08-24 08:19:02 +05:30
Lucario387 0f5a96028e fix: gitsigns not loading 2022-08-24 08:19:02 +05:30
siduck a6f2f0e0b9 Breaking Change: Avoid mapping default keybind <S-b>
related to #1504 #1386, leader + b is the new key for opening new buffers now
2022-08-23 18:54:04 +05:30
Lucario387 4a5a927de8 fix: Windows User cannot load gitsigns 2022-08-21 05:27:15 +05:30
siduck 089cbe43f1 update mason filetype
https://github.com/williamboman/mason.nvim/pull/317
2022-08-20 19:05:30 +05:30
Sébastien Elet a67e19a439 feat(init): resize panes when vim window is resized
Signed-off-by: Sébastien Elet <sebastien@elet.fr>
2022-08-20 10:16:11 +05:30
Akianonymus 130442712b Fix some lsp warnings 2022-08-19 10:46:44 +05:30
Akianonymus 5e81ae8379 utils: close_buffer: Ask for confirmation when using on modified files
neovim handles this internally so why not use it
2022-08-19 10:46:44 +05:30
Akianonymus ce86597c3d utils: bufilter: Check for nil
it will be empty if tabufline is disabled
2022-08-19 10:46:44 +05:30
doubleChu d9cd55fc0f make paddings in the layout can be overrided
users can adjust the padding between the top and the header, or the header and buttons.
2022-08-17 20:47:04 +05:30
Lucario387 66e2904b68 format with stylua 2022-08-15 19:24:41 +05:30
Lucario387 e0d3950f50 fix not using current file's path 2022-08-15 19:24:41 +05:30
Lucario387 14ef6759be Format with stylua 2022-08-15 19:24:41 +05:30
Lucario387 8e8d18ed8d fix: not detecting subdir in git repo 2022-08-15 19:24:41 +05:30
Akianonymus ac0faa4f8b core: options: Remove redundant code
that is shada default behaviour, why it is there ?
2022-08-14 08:52:30 +05:30
Akianonymus 0184035c15 treesitter: Do no set normal syntax highlight here
normal syntax isn't dependent on treesitter, so will be set when loading
the theme
2022-08-14 08:52:30 +05:30
siduck 5f23aaf1ca update comment.nvim mappings ( fix its breaking change )
cd1c38163d
2022-08-13 05:52:33 +05:30
Akianonymus f2c3ed0e7d utils: mappings: Allow plugin=true in user mappings
so that they can be lazy loaded if required

https://github.com/NvChad/NvChad/issues/1467
2022-08-12 22:00:07 +05:30
Akianonymus 78ddf8d624 Just load impatient from init
if will be called multiple times if present in lazy_load.lua which is
  totallly unnecessary

why even from there ?

Yes, this does not affect the --startuptime
2022-08-12 22:00:07 +05:30
Akianonymus a20fc560f3 utils: Improve mapping function | Properly lazy load whichkey
just add desc with normal vim.keymap.set function

whichkey will automatically use the descriptions
2022-08-11 22:53:17 +05:30
siduck 01b17d2ad6 remove icons from mapping descriptions
they look good on whichkey but its too much work to find icons for each mapping description and not all nerdfont icons align the same, some need extra spaces etc so i removed them
2022-08-09 06:49:38 +05:30
siduck 65cb9ba5fc fix typo in lsp_references mapping | #1445 2022-08-08 13:58:49 +05:30
01GUY 04eb37c0f1 'blankline' fix filetype_exclude mason
with a capital letter it doesn't work
2022-08-08 12:38:59 +05:30
nullchilly 8cb28557a9 chore: formatting 2022-08-07 15:46:45 +05:30
nullchilly 724bc1cdf3 Follow lazy_load guidelines 2022-08-07 15:46:45 +05:30
nullchilly 074b656cbd fix impatient not found on bootstrap 2022-08-07 15:46:45 +05:30
nullchilly 33c304f627 chore: stylua format 2022-08-07 15:46:45 +05:30
nullchilly aee1c8b830 fix: impatient loading order 2022-08-07 15:46:45 +05:30
nullchilly 20f45c3962 Remove impatient profiling 2022-08-07 15:46:45 +05:30
nullchilly b3d3c5a7dd Don't load packer at startup 2022-08-07 15:46:45 +05:30
nullchilly 22c3cc0c0d Don't load packer at startup 2022-08-07 15:46:45 +05:30
siduck 74ad741e63 keep whichkey disabled by default
due to startuptime issues
2022-08-07 10:10:50 +05:30
siduck d2dec96ad6 add whichkey groups back 2022-08-07 08:50:36 +05:30
siduck 0b83d9cc0c shorten some mapping functions in utils.lua 2022-08-07 08:25:07 +05:30
siduck 650614d14b avoid loading tabufline mappings in nvchad/uis packer table 2022-08-07 08:11:29 +05:30
Akianonymus f4655e13ec mappings: Only set mappings if the plugin is enabled
format files

fix some lsp warnings
2022-08-07 08:09:32 +05:30
Akianonymus d7b97dfe63 utils: Improve remove_default_keys function
undo this black magic
2022-08-07 08:09:32 +05:30
Akianonymus 5bd4282835 cmp: load if cmp module is called 2022-08-07 08:09:32 +05:30
siduck df3ae31e94 simplify gitsigns lazyloading 2022-08-06 08:19:14 +05:30
siduck cf5e7e9811 add mapping for tbufpick command 2022-08-02 21:11:18 +05:30
siduck d8b966730c remove useless mappings | gt & gT already exists 2022-08-02 20:21:40 +05:30
siduck 60fb7fd0a9 load webdevicons plugin after nvchad_ui 2022-08-01 14:00:06 +05:30
tomasky f51e91a391 fix(lsp): lsp on_attach was not called at normal mode 2022-07-31 20:10:05 +05:30
siduck 243552c21e override mason.nvim higlights with an autocmd temporarily
https://github.com/williamboman/mason.nvim/discussions/133
2022-07-30 16:01:47 +05:30
siduck 27f01cbb10 make alpha.nvim options structure match to all other plugin config options
this was creating confusion among people those who override alpha-nvim config
2022-07-30 08:42:18 +05:30
tomasky 817aeea9a1 fix(0.8): 🐛 update session data dir in neovim nightly
Nvim now stores "session data" (shada, persistent undo, ...) in $XDG_STATE_HOME (~/.local/state)
2022-07-26 18:01:19 +05:30
siduck 429ce94da1 store vim version in global for v0.8 compatibility checks
so we dont have to run vim.version() function in many places of the config cuz we will be making nvchad 0.8 compatible too bit by bit
2022-07-26 13:05:58 +00:00
Lilin Lao 8eb56b6644 Fix windows env path separator
Fix: mason installed binaries path appended to env.PATH when os is windows, the env path separator is ";".
2022-07-26 12:54:12 +05:30
ahhshm a522cebca8 fix(options): don't set `did_load_filetypes` in neovim nightly
Lua filetype detection is enabled by default in neovim nightly so we don't need those two options. The reason we can't simply override them in `custom/init.lua` is that setting `did_load_filetypes` to any value, completely disables filetype detection (and therefore syntax highlighting) and this may confuse people that use neovim nightly. I know NvChad doesn't officially support neovim nightly but people may want to try it to see the new features and this PR makes their life easier. Also, you do a similar check in `plugins/configs/lspconfig.lua` so I thought it's ok :)
2022-07-26 12:52:57 +05:30
Ryan Caezar Itang be5fe4ea62 fix: meson.nvim override typo 2022-07-26 11:20:15 +05:30
siduck fd30351b0d add cmd to install all mason.nvim packages 2022-07-25 14:25:31 +00:00
siduck a83ebc34e5 Breaking Change : LSPInstaller is dead so use mason.nvim
(#1368)
2022-07-25 13:49:33 +00:00
siduck 5d4c51127c clean stuff
5501044bfd
2022-07-24 17:00:09 +00:00
siduck 26fc9b5a6c Breaking change : easen up custom lspconfig setup
before we were using variables/fields to setup custom lspconfig but today I realized that we dont even need that, we can just modify default lspconfigs config
2022-07-24 10:45:14 +00:00
siduck 2b55f9bb78 rm un-needed nvim-colorizer lazyloading function 2022-07-24 10:17:46 +00:00
siduck 6a789fa37d breaking change for option overriders | rm un-necessary things from config
Put all your options in custom/init.lua
2022-07-24 07:35:12 +00:00
siduck 6f0aa376a8 set shiftwidth to 2 | format all files
big thanks to @ghifarit53
2022-07-22 16:00:00 +00:00
Akianonymus d8a92c75b1 Fix colorizer lazy load messing up cursor position when file is opened 2022-07-15 15:58:59 +05:30
siduck e94a8c1e25 add global for tabufline CoverNvimtree module | (#1338)
7292775ca0
2022-07-15 15:17:42 +05:30
siduck 74f2efca9f BREAKING Change for statusline_separator & tabufline overriders
moved statusline & tabufline into a new plugin to keep the base config clean and fix issues like (#1307)
2022-07-15 09:37:12 +05:30
Akianonymus fa68c66454 mappings: Do not use j,k mappings in operator mode 2022-07-14 23:19:29 +05:30
siduck fb9a7b9206 add nvchad ui plugin 2022-07-14 17:42:00 +05:30
Akianonymus b9f0e4623e mappings: Add back mappings removed in 0844431d37 | Format files 2022-07-14 15:44:10 +05:30
siduck 37b2c53a46 fix diff highlights not working on gitcommit filetypes (#1317)
removed indentline char as it moves indentline a lil bit towards right whenever contextstart highlight shows , check https://github.com/lukas-reineke/indent-blankline.nvim/issues/454
2022-07-13 09:51:20 +05:30
Leon Heidelbach 7b683eaf63 fix: only access mapping_info.opts field if possible 2022-07-12 18:34:22 +02:00
siduck 5339bc42ae clean stuff
remove vim tsparser as it is adviced to have 100% lua config and vim.cmd adds a lil overhead as compared to native vim api functions, increase shiftwidth as it looks better
2022-07-12 21:54:25 +05:30