Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Version 3.0.0 #35

Merged
merged 251 commits into from
Jul 11, 2021
Merged
Changes from 1 commit
Commits
Show all changes
251 commits
Select commit Hold shift + click to select a range
de2a73b
plugins: nvim-compe tweaks
NTBBloodbath May 10, 2021
fa0af45
all: format lua files
NTBBloodbath May 11, 2021
19b2ec4
plugins: small fix to statusline when using transparent background
NTBBloodbath May 15, 2021
0399306
doom/config: add prototype implementation of user-defined settings
NTBBloodbath May 15, 2021
6259615
doom/functions: added `Load_custom_settings` function
NTBBloodbath May 15, 2021
76c9be8
doom/default: add prototype implementation of user-defined settings
NTBBloodbath May 15, 2021
047de28
doomrc: add prototype implementation of user-defined settings (Neovim…
NTBBloodbath May 15, 2021
683b832
all: re-format lua files
NTBBloodbath May 15, 2021
074ce11
Update getting_started.md
May 16, 2021
8daa35f
Fix name confusion tagbar vs. symbols-outline
May 16, 2021
5539a2a
Merge pull request #12 from rscircus/fix/tagbar_confusion
GustavoPrietoP May 16, 2021
07368a1
Merge pull request #11 from rscircus/develop
NTBBloodbath May 17, 2021
6c3fc25
Merge remote-tracking branch 'origin/main' into develop
NTBBloodbath May 17, 2021
fb9b39b
doomrc: implement custom commands & functions
NTBBloodbath May 17, 2021
e80aad9
plugins: possibility to disable colorschemes
NTBBloodbath May 17, 2021
51ace15
utils: improve custom plugins fields
NTBBloodbath May 20, 2021
7aa1788
Merge remote-tracking branch 'origin/main' into develop
NTBBloodbath May 20, 2021
f5ab6d2
Merge remote-tracking branch 'origin/main' into develop
NTBBloodbath May 20, 2021
df7ffc4
plugins: fix small bug from cleaned junk
NTBBloodbath May 20, 2021
d028dd5
lsp: small comment tweak
NTBBloodbath May 20, 2021
07a0aea
Merge remote-tracking branch 'origin/main' into develop
GustavoPrietoP May 20, 2021
1537ae1
all: plugin settings are now handled by packer, this allow us to:
NTBBloodbath May 20, 2021
1ad8534
plugins: change treesitter lazy-loading
NTBBloodbath May 20, 2021
adb5c1d
fix: lspsaga hover doc scroll
GustavoPrietoP May 21, 2021
79d23c9
Fetch upstream
vhyrro May 21, 2021
c43528a
Lazy load a handful of plugins for doom
vhyrro May 21, 2021
b775023
fix: lazy loading for toggleterm
vhyrro May 21, 2021
8cfce55
fix: remove useless keybinding
vhyrro May 21, 2021
6b1a5c0
fix: improve startup time, remove redundant keybind, improve init.lua
vhyrro May 21, 2021
060732a
remove: doom.log
vhyrro May 21, 2021
57525a6
remove lazy loading from lspinstall and pears.nvim since those seem t…
vhyrro May 21, 2021
e3b5a6a
made the entire config asynchronous
vhyrro May 21, 2021
39e504a
utils: improve custom plugins management
NTBBloodbath May 22, 2021
cf184de
doomrc: remove dup fields and update `custom_plugins` field docs
NTBBloodbath May 22, 2021
754dbbb
all: refactored way to update Doom (untested!)
NTBBloodbath May 22, 2021
907ca9a
doom/functions: fix stash pop
NTBBloodbath May 22, 2021
ffce377
doom/functions: fix patch apply
NTBBloodbath May 22, 2021
b3a8157
fix: nvim-tree bug where files duplicate themselves in the tree window
vhyrro May 23, 2021
4e562e8
fix: a bunch of bugs regarding incorrect startup order and LSP not tr…
vhyrro May 23, 2021
4cdadb8
add nvim nightly instructions for windows
bandithedoge May 24, 2021
f2e28d5
feat: smarter lazy loading, because there's no such thing as too much…
vhyrro May 24, 2021
9ec317a
fix: issues with which-key failing on dashboard and packerinstall not…
vhyrro May 24, 2021
92f7213
Merge pull request #14 from bandithedoge/patch-1
GustavoPrietoP May 24, 2021
e217a1c
fix: inbuilt autocommands not working
vhyrro May 25, 2021
a21b7d6
fix: support for cheovim and remove trailing whitespace
vhyrro May 29, 2021
c2a0d95
all: new doom-one colorscheme, written in pure Lua. Requires Neovim H…
NTBBloodbath May 31, 2021
9b8d6a5
apply plugins management changes from upstream
NTBBloodbath Jun 4, 2021
6b018ae
update embedded doom-one colorscheme
NTBBloodbath Jun 4, 2021
ca51e5e
dashboard: add benchmarking
NTBBloodbath Jun 4, 2021
9c9ef03
plugins:
NTBBloodbath Jun 4, 2021
24befc9
lsp: proper sumneko setup for neovim lua dev
NTBBloodbath Jun 4, 2021
511ba25
big improvements for doom core:
NTBBloodbath Jun 4, 2021
bd2b31a
fix: open whichkey when pressing space key
NTBBloodbath Jun 4, 2021
7d44f7d
revert http client keybinds
NTBBloodbath Jun 4, 2021
5dfd6c6
update TrueZen plugin configs
NTBBloodbath Jun 5, 2021
bab1cdb
plugins: replace barbar.nvim with nvim-bufferline.lua
NTBBloodbath Jun 5, 2021
36876a3
fix: improve startup time to ~40ms from ~65ms
vhyrro Jun 5, 2021
69e2e79
dashboard: fix compatibility with cheovim
NTBBloodbath Jun 5, 2021
a3003eb
fix: typos in init.lua
vhyrro Jun 5, 2021
7c357df
Merge branch 'develop' of https://github.com/vhyrro/doom-nvim into de…
vhyrro Jun 5, 2021
4ea71db
fix: remove 100ms delay when running `syntax on`
vhyrro Jun 6, 2021
50135d0
doom-one: pull upstream changes
NTBBloodbath Jun 11, 2021
d146d0a
Merge branch 'develop' of https://github.com/vhyrro/doom-nvim into de…
NTBBloodbath Jun 11, 2021
fd60e2f
plugins: fix format.nvim lazy-loading
NTBBloodbath Jun 11, 2021
461abe1
plugins: small statusline tweak
NTBBloodbath Jun 11, 2021
4f0b970
plugins: some bufferline tweaks
NTBBloodbath Jun 11, 2021
b84b50b
doom-one: pull upstream changes
NTBBloodbath Jun 11, 2021
d048202
keybindings:
NTBBloodbath Jun 13, 2021
a98a2e0
fix: implement better startup model
vhyrro Jun 13, 2021
ec1c389
fix: buggy syntax startup
vhyrro Jun 13, 2021
af91c02
fix: attempt to fix the syntax bug again
vhyrro Jun 13, 2021
ac7e970
doom-one: pull upstream changes
NTBBloodbath Jun 15, 2021
9cc86f3
big improvements:
NTBBloodbath Jun 16, 2021
73f3cbe
doom-one:
NTBBloodbath Jun 16, 2021
7614507
autoload: use the new logging system
NTBBloodbath Jun 16, 2021
0885ce7
fix(functions): replace `G` with `vim.g`
NTBBloodbath Jun 16, 2021
56dce27
Update doomrc
NTBBloodbath Jun 16, 2021
4bac3af
Merge branch 'develop' of github.com:vhyrro/doom-nvim into develop
NTBBloodbath Jun 16, 2021
ce25c2e
fix(doomrc): proper doomrc syntax highlighting in GitHub
NTBBloodbath Jun 17, 2021
7e060c0
gitignore: remove unused rule
NTBBloodbath Jun 17, 2021
d36c52a
refact: plugins now resides inside `doom.modules` instead of `plugins…
NTBBloodbath Jun 17, 2021
731c6c8
refact: plugins configs now resides inside `doom.modules\.config` ins…
NTBBloodbath Jun 17, 2021
f94e7e2
refact: re-order code structure
NTBBloodbath Jun 17, 2021
87061c1
refact: re-order code structure (2)
NTBBloodbath Jun 17, 2021
1c217f8
refact: re-order code structure (3)
NTBBloodbath Jun 17, 2021
7fc85f5
fix(functions): squash some bugs
NTBBloodbath Jun 17, 2021
5c9c81c
doom-one:
NTBBloodbath Jun 18, 2021
2779ab5
fix(health): require logging module
NTBBloodbath Jun 18, 2021
f9107dc
all: format lua files
NTBBloodbath Jun 18, 2021
78b16f6
all: add selene linter files
NTBBloodbath Jun 18, 2021
2ae4f70
all: add stylua formatter
NTBBloodbath Jun 18, 2021
d76939b
doom-one: pull upstream changes
NTBBloodbath Jun 18, 2021
bdb0bba
feat(doom): add selene linter rules and move `doom_version` to utils
NTBBloodbath Jun 18, 2021
007239e
fix(autocmds): clean code junk
NTBBloodbath Jun 20, 2021
6b6a230
Add lazy-loading and restructuring #13
NTBBloodbath Jun 20, 2021
c9ad19a
Add Lazy-loading and restructuring, #13
NTBBloodbath Jun 20, 2021
9712a64
fix: remove git merge junk
NTBBloodbath Jun 20, 2021
06854bb
fix: remove git merge junk (2)
NTBBloodbath Jun 20, 2021
2340d66
all: improve and update documentation
NTBBloodbath Jun 22, 2021
0009cb3
refact: ditch useless function for custom plugins
NTBBloodbath Jun 22, 2021
1eaaed6
refact: ditch try/catch in favour of pcall
NTBBloodbath Jun 22, 2021
fc4b865
docs: update doom/utils module docs
NTBBloodbath Jun 22, 2021
dc6f7ea
all: format lua files
NTBBloodbath Jun 22, 2021
fde7ba0
feat: add selene CI (wip)
NTBBloodbath Jun 24, 2021
be61819
feat: add stylua CI (wip)
NTBBloodbath Jun 24, 2021
4fa4e52
refact(ci): use selene-action for linting
NTBBloodbath Jun 24, 2021
8581e7b
fix: move whichkey keybinds to whichkey config file
NTBBloodbath Jun 25, 2021
08fbc52
Format lua files
github-actions[bot] Jun 25, 2021
bd6f974
modules/doom: add readme with specs
NTBBloodbath Jun 25, 2021
c776b3e
Merge branch 'develop' of github.com:NTBBloodbath/doom-nvim into develop
NTBBloodbath Jun 25, 2021
ef2ec8a
feat(docs): add a migration section for version 3.0.0 (WIP)
NTBBloodbath Jun 30, 2021
c07d71f
fix(docs): proper url in ToC
NTBBloodbath Jun 30, 2021
9bf3dc0
fix(dashboard): fix Doom nil value
NTBBloodbath Jul 1, 2021
78e0439
Merge branch 'develop' of github.com:NTBBloodbath/doom-nvim into develop
NTBBloodbath Jul 1, 2021
a270a7f
utils: bump doom version to 3.0.0-alpha1 so we can diff stable and de…
NTBBloodbath Jul 1, 2021
ed6536f
fix(tree): use the new keybinds syntax
NTBBloodbath Jul 1, 2021
81596b9
Removed: LSP kind, Added: Builtin vim.lsp.protocol.CompletionKind
GustavoPrietoP Jul 1, 2021
c87ad0b
Format lua files
github-actions[bot] Jul 1, 2021
0482f5f
hotfix(modules): fix packer issues on first doom launch
NTBBloodbath Jul 1, 2021
3c8bdc6
Merge branch 'develop' of github.com:NTBBloodbath/doom-nvim into develop
NTBBloodbath Jul 1, 2021
b11a200
doom-one: pull upstream changes
NTBBloodbath Jul 1, 2021
d486efc
big changes:
NTBBloodbath Jul 2, 2021
7040bec
Format lua files
github-actions[bot] Jul 2, 2021
3251810
more changes:
NTBBloodbath Jul 2, 2021
9c33ab4
hotfix(telescope): fix breaking changes
NTBBloodbath Jul 2, 2021
d8723d2
Format lua files
github-actions[bot] Jul 2, 2021
d5adde7
refact: move whichkey binds to plugin configs again
NTBBloodbath Jul 2, 2021
d225039
refact(eviline): new look inspired by doom emacs modeline
NTBBloodbath Jul 2, 2021
a7a1404
Format lua files
github-actions[bot] Jul 2, 2021
fcfe7c0
refact(modules): use a different event to load which-key and reduce s…
NTBBloodbath Jul 2, 2021
35f2169
feat(eviline): general improvements, new custom provider for lsp/file…
NTBBloodbath Jul 2, 2021
c853d7e
feat(autocmds): run `PackerCompile` everytime a plugin configuration …
NTBBloodbath Jul 2, 2021
b27d05a
doom-one: pull upstream
NTBBloodbath Jul 2, 2021
e474e6d
Format lua files
github-actions[bot] Jul 2, 2021
9f9168d
all: apply main branch changes
NTBBloodbath Jul 3, 2021
e93d5dc
doom-one: pull upstream
NTBBloodbath Jul 3, 2021
eeb5e49
fix(modules): fix inconsistency on snippets
NTBBloodbath Jul 3, 2021
5390b58
refact: packer bootstrapping is now handled internally
NTBBloodbath Jul 3, 2021
f26c989
fix:
NTBBloodbath Jul 3, 2021
da652cc
refact: fragment doomrc (BREAKING CHANGE)
NTBBloodbath Jul 4, 2021
288b2ff
docs: update docs and gitignore
NTBBloodbath Jul 4, 2021
5eba579
Format lua files
github-actions[bot] Jul 4, 2021
2d5e71f
doomrc: remove zen from defaults
NTBBloodbath Jul 4, 2021
952cc73
all:
NTBBloodbath Jul 4, 2021
99ebdc7
fix(logging): stop shadowing variable
NTBBloodbath Jul 4, 2021
835b464
Format lua files
github-actions[bot] Jul 4, 2021
25cac11
doomrc: remove TODO comment for `+lsp` parser
NTBBloodbath Jul 4, 2021
41893da
fix(ci): fix formatting ci
NTBBloodbath Jul 4, 2021
c630c8e
fix(install): proper doom version
NTBBloodbath Jul 4, 2021
7f06571
utils: bump doom version
NTBBloodbath Jul 4, 2021
f0ebc61
fix(plugins): remove personal changes
NTBBloodbath Jul 4, 2021
ec51426
refact(ci): trigger only when pushed Lua files
NTBBloodbath Jul 4, 2021
9df2e8b
doomrc: change defaults, document and add range-highlight
NTBBloodbath Jul 4, 2021
675134a
modules: add range-highlight and lazy-load plenary/popup
NTBBloodbath Jul 4, 2021
6adf853
feat(functions): change background if needed too
NTBBloodbath Jul 4, 2021
aae9884
feat: improve documentation
NTBBloodbath Jul 4, 2021
23d5026
modules(eviline): remove unused var
NTBBloodbath Jul 4, 2021
9854eb6
selene: remove not needed rules
NTBBloodbath Jul 4, 2021
88e48c2
readme: update demo
NTBBloodbath Jul 5, 2021
05e2d0e
fix(install_servers): remove the `+lsp` flag properly
NTBBloodbath Jul 5, 2021
5520df4
all: restore personal preference and change doomrc defaults
NTBBloodbath Jul 5, 2021
2a247c6
refact: treesitter cannot be disabled as doomrc.langs depends on it
NTBBloodbath Jul 5, 2021
143f09e
fix(lspinstall): only try to install the server if there is a server …
NTBBloodbath Jul 5, 2021
8dd6ff5
all: set GPLv2 as the license (re-licensing)
NTBBloodbath Jul 5, 2021
6094009
Update README.md
NTBBloodbath Jul 5, 2021
fa772ce
:busts_in_silhouette: Add @JohnIrle as a contributor
NTBBloodbath Jul 5, 2021
88c1d20
:busts_in_silhouette: Add @bketelsen as a contributor
NTBBloodbath Jul 5, 2021
4c3bb81
:busts_in_silhouette: Update @bketelsen as a contributor
NTBBloodbath Jul 5, 2021
84511e2
:busts_in_silhouette: Add @Samantha-uk as a contributor
NTBBloodbath Jul 5, 2021
a2c61cf
:busts_in_silhouette: Add @rscircus as a contributor
NTBBloodbath Jul 5, 2021
49819df
:busts_in_silhouette: Add @bandithedoge as a contributor
NTBBloodbath Jul 5, 2021
2592ea1
:busts_in_silhouette: Add @vhyrro as a contributor
NTBBloodbath Jul 5, 2021
3c5e10f
:busts_in_silhouette: Add @Mremmalex as a contributor
NTBBloodbath Jul 5, 2021
622f139
:busts_in_silhouette: Add @GustavoPrietoP as a contributor
NTBBloodbath Jul 5, 2021
d6de9f4
:busts_in_silhouette: Add @ZeusThundr as a contributor
NTBBloodbath Jul 5, 2021
6c1dca7
:busts_in_silhouette: Add @leonistor as a contributor
NTBBloodbath Jul 5, 2021
9afeeab
readme: move all-contributors badge and update desc
NTBBloodbath Jul 5, 2021
a208ac5
Update and tweak documentation
notusknot Jul 5, 2021
e18ac64
fix: properly map nvim-compe keybinds
NTBBloodbath Jul 5, 2021
1768233
feat: add `disable_macros` option, re-enable F key binds
NTBBloodbath Jul 5, 2021
16e104f
feat(doomrc): add support for more languages and add more docs
NTBBloodbath Jul 6, 2021
4978fa3
refact: move expr to a lua table for compe mappings
NTBBloodbath Jul 6, 2021
993ef36
feat(eviline): restore evil icon, dynamic diagnostics icons
NTBBloodbath Jul 6, 2021
7d23e0c
feat: add Neorg plugin setup
NTBBloodbath Jul 6, 2021
42b8273
doomrc: remove octo plugin
NTBBloodbath Jul 6, 2021
27f90f9
refact: stop stashing in DoomUpdate command
NTBBloodbath Jul 6, 2021
82b3ef9
feat: ditch snippets.nvim in favor of LuaSnip + friendly-snippets
NTBBloodbath Jul 6, 2021
e0c9eb0
feat(utils): add read/write Luv functions
NTBBloodbath Jul 6, 2021
9f77dd8
refact: `DoomUpdate` not using stashs anymore
NTBBloodbath Jul 6, 2021
0bd9eb9
feat: ignore update files
NTBBloodbath Jul 6, 2021
313f25c
feat: add `DoomRollback` command and squash bugs
NTBBloodbath Jul 7, 2021
412bfbf
feat: update docs
NTBBloodbath Jul 8, 2021
c1676ac
fix: remove MIT references
NTBBloodbath Jul 8, 2021
e8e2d97
feat: add doom-one colorscheme settings to doom_config
NTBBloodbath Jul 8, 2021
b44c99f
fix(telescope): adapt current configs to breaking changes
NTBBloodbath Jul 8, 2021
587f292
feat: update docs, add `DoomRollback` docs
NTBBloodbath Jul 8, 2021
76725ae
Merge pull request #32 from notusknot/new-docs
NTBBloodbath Jul 8, 2021
05ccb64
Merge branch 'develop' of github.com:NTBBloodbath/doom-nvim into develop
NTBBloodbath Jul 8, 2021
0b9dde8
feat: update contributors list, see #33
NTBBloodbath Jul 8, 2021
81b5a6c
feat: update contributors list, see #33
NTBBloodbath Jul 8, 2021
7063b7c
feat: bump Doom version
NTBBloodbath Jul 8, 2021
508971e
feat(changelog): sync CHANGELOG with main branch
NTBBloodbath Jul 8, 2021
4f54761
refact: change `symbols_outline_left` to `explorer_right`
NTBBloodbath Jul 8, 2021
e316da2
feat: update doom_config defaults
NTBBloodbath Jul 8, 2021
3c0884f
refact: rename `modules/doom` to `modules/built-in`
NTBBloodbath Jul 8, 2021
79a2487
feat: reduce verbosity on debugging logs
NTBBloodbath Jul 8, 2021
45adbc0
refact: improve current which-key setup
NTBBloodbath Jul 9, 2021
0f04502
feat: improve installer help and banner
NTBBloodbath Jul 9, 2021
f55b375
fix: proper code action command
NTBBloodbath Jul 9, 2021
0a40561
fix: small ci change
NTBBloodbath Jul 9, 2021
62eb3b7
feat(modules): some small updates
NTBBloodbath Jul 9, 2021
29fb026
feat: small installer changes
NTBBloodbath Jul 9, 2021
b8c7a57
feat(modules): initial runner and compiler plugins
NTBBloodbath Jul 10, 2021
e54bd93
feat(doomrc): update defaults
NTBBloodbath Jul 10, 2021
c17435d
fix: small ci change
NTBBloodbath Jul 10, 2021
e1024d5
fix: small ci change
NTBBloodbath Jul 10, 2021
1c4118a
fix(ci): fix stylua glob patterns
NTBBloodbath Jul 10, 2021
8c4f01f
feat(doom_config): small changes to defaults
NTBBloodbath Jul 10, 2021
d7f3cf4
Format lua files
github-actions[bot] Jul 10, 2021
9d9c821
feat: bump Doom version
NTBBloodbath Jul 10, 2021
221e345
feat: update neorg setup
NTBBloodbath Jul 10, 2021
3c73405
feat: clean unneeded code
NTBBloodbath Jul 10, 2021
57e799f
fix(telescope): revert path_display changes
NTBBloodbath Jul 11, 2021
b823a7a
feat: update docs
NTBBloodbath Jul 11, 2021
f5b975f
feat(autocmds): improve the Packer autocompilation
NTBBloodbath Jul 11, 2021
5548aba
refact(autocmds): less aggresive autosave
NTBBloodbath Jul 11, 2021
56402e7
feat: bump Doom version (`rc1` => `rc2`)
NTBBloodbath Jul 11, 2021
a437505
feat(docs): small tweaks
NTBBloodbath Jul 11, 2021
aabf407
feat(docs): small tweaks
NTBBloodbath Jul 11, 2021
4985c6f
feat(install): don't install neovim nightly appimage anymore
NTBBloodbath Jul 11, 2021
26bdd0b
feat(install): some tweaks regarding to requirements
NTBBloodbath Jul 11, 2021
44f012f
fix(doormc): fix indentation for lsp
NTBBloodbath Jul 11, 2021
15fa79a
feat(keybindings): add `SPC - d - s` for changing colorscheme
NTBBloodbath Jul 11, 2021
b931c8b
feat(core): small tweaks, update defaults
NTBBloodbath Jul 11, 2021
3ffc02e
fix(treesitter): proper Neorg parser installation
NTBBloodbath Jul 11, 2021
c50490a
Format lua files
github-actions[bot] Jul 11, 2021
f9bc920
fix(which-key): proper letter case for symbols-outline
NTBBloodbath Jul 11, 2021
119aa0b
Merge branch 'develop' of github.com:NTBBloodbath/doom-nvim into develop
NTBBloodbath Jul 11, 2021
897967c
feat(which-key): some small tweaks
NTBBloodbath Jul 11, 2021
a3c6c82
Format lua files
github-actions[bot] Jul 11, 2021
a60f144
fix(which-key): use Capitalized case for terminal
NTBBloodbath Jul 11, 2021
131164f
Merge branch 'develop' of github.com:NTBBloodbath/doom-nvim into develop
NTBBloodbath Jul 11, 2021
e2733ec
fix(keybindings): swap <C-Up> and <C-Down> so they will make more sense
NTBBloodbath Jul 11, 2021
c5747cf
feat(docs): update built-in docs
NTBBloodbath Jul 11, 2021
5f0ddd0
fix: doom will not spit an error on first launch because of the `pack…
NTBBloodbath Jul 11, 2021
9aa7e93
Format lua files
github-actions[bot] Jul 11, 2021
34af5e2
feat(docs): pull main branch changelog
NTBBloodbath Jul 11, 2021
2fd11f0
feat(docs): add CHANGELOG entry for `v3.0.0`
NTBBloodbath Jul 11, 2021
e5a1d92
feat: bump Doom version to stable
NTBBloodbath Jul 11, 2021
dc83874
Merge main into develop
NTBBloodbath Jul 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 2 additions & 59 deletions lua/doom/utils/init.lua
Original file line number Diff line number Diff line change
@@ -4,9 +4,6 @@
-- License: MIT --
---[[---------------------------------------]]---

--- Require packer so we can use `packer.use` function in `custom_plugins` function
local packer = require('packer')

-------------------- HELPERS --------------------
Api, Cmd, Fn = vim.api, vim.cmd, vim.fn
Keymap, Execute, G = Api.nvim_set_keymap, Api.nvim_command, vim.g
@@ -84,63 +81,9 @@ end

-- A better and less primitive implementation of custom plugins in Doom Nvim
function Custom_plugins(plugins)
-- if a plugin have some configs like enabled or requires then we will
-- store them in that table
local plugin_with_configs = {}

-- Valid fields for the plugin table (not the boolean ones), see
-- https://github.com/wbthomason/packer.nvim#specifying-plugins
local plugin_valid_fields = {'branch', 'requires', 'config', 'run'}

if type(plugins) ~= 'string' then
for key, val in pairs(plugins) do
-- Create the correct plugin structure to packer
-- use {
-- url,
-- branch,
-- disable,
-- requires,
-- config,
-- run
-- }

-- Plugin repository
if key == 'repo' then
table.insert(plugin_with_configs, val)
end
local packer = require('packer')

-- Plugin branch, dependencies, config and post-install/update hooks
if Has_value(plugin_valid_fields, key) then
plugin_with_configs[key] = val
end

-- If the plugin is enabled or not, false by default
if key == 'enabled' then
if val then
plugin_with_configs['disable'] = false
else
plugin_with_configs['disable'] = true
end
end

-- If the plugin should be skipped in the updates/syncs,
-- false by default
if key == 'lock' then
if val then
plugin_with_configs['lock'] = true
else
plugin_with_configs['lock'] = false
end
end
end
-- Send the configured plugin to packer
packer.use(plugin_with_configs)
else
-- Send the simple plugins, e.G. those who have not declared with configs
-- 'user/repo' ← simple plugin
-- { 'user/repo', opts } ← configured plugin
packer.use(plugins)
end
packer.use(plugins)
end

-- Get current OS, returns 'Other' if the current OS is not recognized