-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor (user custom): Proposal for enhancing user customization experience #931
Conversation
…Don't create a file with the same name as `lua/modules/configs`)
This reverts commit b127042.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Several general comments:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes may require an update.
57e91ca
to
ae7fb55
Compare
Co-authored-by: 冷酔閑吟 <[email protected]> Signed-off-by: MiSumiSumi <[email protected]>
ae7fb55
to
357738f
Compare
… according to module location
…ugins were overridden.
@CharlesChiuGit I fixed several trivial formatting issues and added some comments. Now the |
@Jint-lzxy |
@Jint-lzxy @CharlesChiuGit |
@misumisumi Oh sorry I missed that review, there are too many replies flying around this thread. May I ask which specific review you're referring to? |
Please review the |
|
165c8a2
to
a789e3c
Compare
This looks pretty good to me lol |
Do you mean that it's better to delete it? |
I reviewed this version of |
No, I didn't change anything. |
LGTM! |
Are we still waiting for the new wiki to complete? |
Yeah we're still waiting for that |
@Jint-lzxy @CharlesChiuGit |
Signed-off-by: ayamir <[email protected]>
Signed-off-by: ayamir <[email protected]>
Can we merge it now? |
The code has been reviewed and the wiki has been edited, so it should be fine. |
…erience (ayamir#931) * feat(utils): Add `load_plugin` function * feat(pack.lua): Added loading of user custom plugins * feat(ui): Changes to `load_plugin()` * feat(tool): Changes to `load_plugin()` * feat(editor): Changes to `load_plugin()` * feat(lang): Changes to `load_plugin()` * feat(completion): Changes to `load_plugin()` * feat(keymap): Adding user overrides for keymap * feat(pack): Add `lua/user/modules/configs` to package.path (WARNING: Don't create a file with the same name as `lua/modules/configs`) * feat(event): Supports user-defined events * feat(options): Supports user-defined options * feat(settings): Supports user-defined settings * hotfix(pack): Incorrect value is added when there is no user-defined plugin * Revert "feat(keymap): Adding user overrides for keymap" This reverts commit b127042. * feat(keymap): Defining user keymaps with the override function introduced in 372d3c9 * feat(keymap): Support unset keymap. * Apply suggestions from code review Co-authored-by: 冷酔閑吟 <[email protected]> Signed-off-by: MiSumiSumi <[email protected]> * fix(pack): Change user_module_dir location and implement 'string:sub' according to module location * hotfix(utils): Fixed a bug that could not be loaded when vimscript plugins were overridden. * feat(utils): Create `config_extend` function * add(user): Create user config directory * feat(keymap): add `keymap.replace` function * add(user/keymap): Create user config directory for keymap * fix: cleanups & fixups * chore: remove unused function * feat(pack): add custom loader for user plugin config * feat(pack): add `disabled_plugins` to settings * update(.gitignore): add `lua/user` * fix(utils): Fixed an issue where lists with values were replaced instead of expanded * feat(lsp): Support user override for lsp settings * feat(utils): add `load_config()` to resolve and load `user.configs` * Revert "feat(utils): add `load_config()` to resolve and load `user.configs`" This reverts commit f95d110. * feat(modules/keymap): just remove the keymap * refactor(mason-*): Separating `mason-*` from `lspconfig` and `null-ls` * feat(mason_*_handler): If there is a user definition, it is read with priority * fix(pack): Abolish custom loader and add `lua/user` to rtp * add(user): Make `lsp-servers` and `dap-clients` directory * fix(user/keymap): Add override `core.keymap` * rename: Move `lsp-servers` and `dap-clients` under `user/configs` * chore: update comments Signed-off-by: Charles Chiu <[email protected]> * chore: update comments Signed-off-by: Charles Chiu <[email protected]> * chore: cleanup * style: Change position of user override * feat(issue template): add user config debug template Signed-off-by: Charles Chiu <[email protected]> * chore(issue template): fix new template Signed-off-by: Charles Chiu <[email protected]> * fix template Signed-off-by: Charles Chiu <[email protected]> * test fix Signed-off-by: Charles Chiu <[email protected]> * fix(issue template): syntax error Signed-off-by: Charles Chiu <[email protected]> * fix(issue template): syntax error Signed-off-by: Charles Chiu <[email protected]> * fixup(ISSUE_TEMPLATE): fix formatting&linting issues * fixup(IS_TEMPL): proper redirections to correct template * fix merge conflicts * feat: add colorscheme setting to example user settings. Signed-off-by: ayamir <[email protected]> * feat: update tutor and settings. Signed-off-by: ayamir <[email protected]> --------- Signed-off-by: MiSumiSumi <[email protected]> Signed-off-by: Charles Chiu <[email protected]> Signed-off-by: ayamir <[email protected]> Co-authored-by: 冷酔閑吟 <[email protected]> Co-authored-by: Charles Chiu <[email protected]> Co-authored-by: ayamir <[email protected]>
…erience (ayamir#931) * feat(utils): Add `load_plugin` function * feat(pack.lua): Added loading of user custom plugins * feat(ui): Changes to `load_plugin()` * feat(tool): Changes to `load_plugin()` * feat(editor): Changes to `load_plugin()` * feat(lang): Changes to `load_plugin()` * feat(completion): Changes to `load_plugin()` * feat(keymap): Adding user overrides for keymap * feat(pack): Add `lua/user/modules/configs` to package.path (WARNING: Don't create a file with the same name as `lua/modules/configs`) * feat(event): Supports user-defined events * feat(options): Supports user-defined options * feat(settings): Supports user-defined settings * hotfix(pack): Incorrect value is added when there is no user-defined plugin * Revert "feat(keymap): Adding user overrides for keymap" This reverts commit b127042. * feat(keymap): Defining user keymaps with the override function introduced in 372d3c9 * feat(keymap): Support unset keymap. * Apply suggestions from code review Co-authored-by: 冷酔閑吟 <[email protected]> Signed-off-by: MiSumiSumi <[email protected]> * fix(pack): Change user_module_dir location and implement 'string:sub' according to module location * hotfix(utils): Fixed a bug that could not be loaded when vimscript plugins were overridden. * feat(utils): Create `config_extend` function * add(user): Create user config directory * feat(keymap): add `keymap.replace` function * add(user/keymap): Create user config directory for keymap * fix: cleanups & fixups * chore: remove unused function * feat(pack): add custom loader for user plugin config * feat(pack): add `disabled_plugins` to settings * update(.gitignore): add `lua/user` * fix(utils): Fixed an issue where lists with values were replaced instead of expanded * feat(lsp): Support user override for lsp settings * feat(utils): add `load_config()` to resolve and load `user.configs` * Revert "feat(utils): add `load_config()` to resolve and load `user.configs`" This reverts commit f95d110. * feat(modules/keymap): just remove the keymap * refactor(mason-*): Separating `mason-*` from `lspconfig` and `null-ls` * feat(mason_*_handler): If there is a user definition, it is read with priority * fix(pack): Abolish custom loader and add `lua/user` to rtp * add(user): Make `lsp-servers` and `dap-clients` directory * fix(user/keymap): Add override `core.keymap` * rename: Move `lsp-servers` and `dap-clients` under `user/configs` * chore: update comments Signed-off-by: Charles Chiu <[email protected]> * chore: update comments Signed-off-by: Charles Chiu <[email protected]> * chore: cleanup * style: Change position of user override * feat(issue template): add user config debug template Signed-off-by: Charles Chiu <[email protected]> * chore(issue template): fix new template Signed-off-by: Charles Chiu <[email protected]> * fix template Signed-off-by: Charles Chiu <[email protected]> * test fix Signed-off-by: Charles Chiu <[email protected]> * fix(issue template): syntax error Signed-off-by: Charles Chiu <[email protected]> * fix(issue template): syntax error Signed-off-by: Charles Chiu <[email protected]> * fixup(ISSUE_TEMPLATE): fix formatting&linting issues * fixup(IS_TEMPL): proper redirections to correct template * fix merge conflicts * feat: add colorscheme setting to example user settings. Signed-off-by: ayamir <[email protected]> * feat: update tutor and settings. Signed-off-by: ayamir <[email protected]> --------- Signed-off-by: MiSumiSumi <[email protected]> Signed-off-by: Charles Chiu <[email protected]> Signed-off-by: ayamir <[email protected]> Co-authored-by: 冷酔閑吟 <[email protected]> Co-authored-by: Charles Chiu <[email protected]> Co-authored-by: ayamir <[email protected]>
I proposed user custom isolation in #885, but changed many parts because it was an override using
opts
inlazy.nvim
.In #888, it was pointed out that the default definition might be read after the user definition if the
lazy.nvim
method is passed toopts
.In addition, it was pointed out that it would be possible to consider a configuration that can be overridden without making major changes to the current configuration, so we considered it again and implemented it.
At that time, I created a new branch, so I will throw a PR again.
Closing the previous PR.