Commit Graph

89 Commits

Author SHA1 Message Date
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
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 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
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 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 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
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
siduck 6f0aa376a8 set shiftwidth to 2 | format all files
big thanks to @ghifarit53
2022-07-22 16:00:00 +00:00
Akianonymus b9f0e4623e mappings: Add back mappings removed in 0844431d37 | Format files 2022-07-14 15:44:10 +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
siduck d4c71e1472 fix hidden buffer tabs not showing in tabufline with less space
credits to @ii14 for helping me fix this issue
2022-06-29 10:17:28 +05:30
siduck ae77406a64 fix #1276 2022-06-28 20:09:02 +05:30
siduck 519a2df1a0 clean up 2022-06-28 11:11:19 +05:30
tomasky 6ff356ae93 fix: let override function works,fix #1287 #1278 2022-06-28 11:11:19 +05:30
siduck 73cfdd7367 remove buf_loaded check
As this causes issues (buf switching i.e tbufbnext/tbufprev) not working properly when nvim is opened with multiple files dbb3439982 (commitcomment-77092312)
2022-06-27 20:11:20 +05:30
siduck 33550e9587 add options for tabufline : enabled, lazyload, override | fix (#1274) 2022-06-27 07:16:33 +05:30
siduck 62b9c09f44 fix tabufline crash when formatting buf | (#1265) 2022-06-26 06:24:52 +05:30
siduck 845d5b4866 write own lightweight tabufline | remove bufferline 2022-06-24 19:24:59 +05:30
Chris 2138c846be Fix Plugin Override Function Capabilities
In order to ensure that plugin configuration that is overridden with a
function instead of a table is still merged with the default plugin
configuration, this commit splits up the if/elseif/else statement in
lua/core/utils.lua.

This is necessary as we want to take the resulting table returned from
the override function and merge it with the default_table before setting
up the plugin.

Fixes [this issue](https://github.com/NvChad/NvChad/issues/1239)
2022-06-20 05:15:49 +05:30
Leon Heidelbach 7bb3afbb96 feat: add warning message when using PackerSync on snapshot branches 2022-06-20 01:30:42 +02:00
siduck 9bca3eacae clean config | fix (#1225) (#1226) 2022-06-18 09:57:17 +05:30
zbirenbaum 6bb209a834 fix #1215 2022-06-16 00:01:15 -04:00
a690700752 771046a738 feature: make override can be a function 2022-06-15 17:56:50 +05:30
siduck 0bde81a074 Improve startuptime | remove un-needed plugins | lazy load plugin highlights too
removed nvim-gps as nvim-navic or winbar.nvim will be added when v0.8 neovim releases. Removed lsp signature as I was able to emulate showing args with the default signature help() window
2022-06-14 17:36:27 +05:30
siduck 48b1226961 write own statusline | remove feline 2022-06-05 19:11:26 +05:30
siduck f78dc30508 minor improvements to startuptime 2022-06-01 00:49:23 +05:30
siduck 1381e924cf fix no lspmappings without custom mappings | 0f013d4e7b (commitcomment-74845391) 2022-05-29 20:26:16 +05:30
siduck cb97cef2a7 remove usage of globals for util functions 2022-05-29 16:07:47 +05:30
siduck 0f013d4e7b Breaking change for non-whichkey users | Refactor mapping functions 2022-05-29 15:10:33 +05:30
Leon Heidelbach f8b5571466 fix: fixed lspconfig issues and cleaned up 2022-05-27 06:07:28 +05:30
Leon Heidelbach 5ba309a0df fix: moved lsp mappings to lspconfig to only be set on lsp attach 2022-05-27 06:07:28 +05:30
siduck a2ff5c285e avoid un-needed lazy loading of packer | improve packer bootstrapping 2022-05-23 12:54:03 +05:30
siduck ed68c4b07d rm un-needed mappings 2022-05-21 12:33:19 +05:30
Leon Heidelbach 5716bbcca0 fix: which-key group names can now be properly set with M.groups & refactoring 2022-05-16 18:17:49 +05:30
Leon Heidelbach ec62a5cee8 fix: handle bug when which-key is not installed 2022-05-15 19:15:23 +05:30
Leon Heidelbach 3fc888c147 fix: remove disabled maps from which-key again 2022-05-15 18:04:15 +05:30
Leon Heidelbach 0e8c73527c fix: handled bug when no mappings table was set in chadrc 2022-05-14 23:15:45 +05:30
Leon Heidelbach 1bc1d9c52a fix: disabled key maps are now completely removed from which-key 2022-05-14 18:34:08 +05:30
Leon Heidelbach 96cd08ef45 fix: default mappings can now be properly disabled, independent of load order 2022-05-14 08:01:09 +05:30
siduck 25305eca92 clean up 2022-05-12 19:27:11 +05:30
siduck 0844431d37 breaking change : re-implement custom mappings | simplify it | add whichkey
fixes #1057 , #1047
2022-05-12 18:26:01 +05:30
Arman.H 5a1240be82 refactor: add utils to the global scope 2022-05-10 20:15:08 +05:30
siduck c74b049408 Update utils.lua 2022-05-05 15:02:48 +05:30
Akianonymus 382eb7c60e utils.lua: Improve plugin_list function
require strings if given, if succesfull then use that table
2022-05-05 15:02:48 +05:30