Skip to content
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

fix: some vim plugins get disabled by mistake #1341

Merged
merged 5 commits into from
Aug 21, 2024
Merged

fix: some vim plugins get disabled by mistake #1341

merged 5 commits into from
Aug 21, 2024

Conversation

Jint-lzxy
Copy link
Collaborator

This commit addresses a few regressions introduced by #1340:

This commit addresses a few regressions introduced by #1340:

* The `tutor` plugin was accidentally disabled.
* netrw, along with its configuration, was mistakenly disabled.
* EditorConfig is now being implicitly disabled, which wasn't intended
  before #1340.

Signed-off-by: Jint-lzxy <[email protected]>
@CharlesChiuGit
Copy link
Collaborator

EditorConfig is not disabled currently.
image

@CharlesChiuGit
Copy link
Collaborator

i thought we use nvim-tree as netrw, no?
or it's necessary to load builtin netrw?

@ayamir
Copy link
Owner

ayamir commented Aug 15, 2024

I don't use editorconfig, so I can't judge if it works for fine.
And as the readme of nvim-tree said, disabling netrw is strongly advised.

@Jint-lzxy
Copy link
Collaborator Author

Sorry for the late reply! I've had a lot to sort through over the past few days lol

EditorConfig is not disabled currently

Oops, that was enabled by mistake. Sorry for the extra noise introduced with this PR! I somehow forgot we already have sleuth.vim lmao

i thought we use nvim-tree as netrw, no?
or it's necessary to load builtin netrw?

nvim-tree isn't actually hijacking netrw during startup cuz it's intended to be loaded on demand. So if we disable netrw, users might encounter issues when trying to open directories with neovim at startup. Alternatively, we could configure nvim-tree to hijack netrw, but that would likely cause a noticeable increase in startup time1.

And as the readme of nvim-tree said, disabling netrw is strongly advised.

Hmm, I think this ultimately comes down to personal preference cuz afaiu netrw is generally useful for opening a directory with neovim (like nvim .) at startup, which is significantly faster than using nvim-tree1 and doesn't come with a huge deficit in features compared to nvim-tree. In most other cases, nvim-tree handles things well.

Footnotes

  1. That's what happens on my devices, tho I'm not sure if it's different with other software and hardware combos. 2

@Jint-lzxy
Copy link
Collaborator Author

0b6dc57 reintroduces load_distribution_plugins and adds a warning about enabling editorconfig.lua:

Sleuth.vim already includes all the features provided by this plugin.
Do NOT enable both at the same time, or you risk breaking the entire detection system.

I've kept netrw enabled for now, but I'm open to changing that whenever lol

@ayamir
Copy link
Owner

ayamir commented Aug 17, 2024

Fine for me.

@ayamir ayamir requested a review from CharlesChiuGit August 17, 2024 12:20
@aarnphm
Copy link
Collaborator

aarnphm commented Aug 17, 2024

tested with builtin editorconfig seems to work (as I don't use sleuth.vim).

Copy link
Collaborator

@CharlesChiuGit CharlesChiuGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CharlesChiuGit
Copy link
Collaborator

we can't disable builtin editorconfig via global options, if we use lazy.nvim.
we can only get a valid disable via lazy.nvim.

@CharlesChiuGit
Copy link
Collaborator

CharlesChiuGit commented Aug 20, 2024

tbh, i think we don't need vim-sleuth since we now have a builtin editorconfig.
how do u guys think? @ayamir @Jint-lzxy @aarnphm
ppl should use after/ftplugin or native editorconfig syntax.

@aarnphm
Copy link
Collaborator

aarnphm commented Aug 20, 2024

sgtm. always +1 when removing plugins.

@ayamir
Copy link
Owner

ayamir commented Aug 21, 2024

tbh, i think we don't need vim-sleuth since we now have a builtin editorconfig.

vim-sleuth is useful for me b/c I don't use editorconfig lol

@CharlesChiuGit
Copy link
Collaborator

ok lol
then i think it's ready to merge.

@ayamir ayamir merged commit 360ec25 into main Aug 21, 2024
4 checks passed
@ayamir ayamir deleted the fix/rtp-plugins branch August 21, 2024 10:24
This was referenced Sep 23, 2024
Deg2v pushed a commit to Deg2v/nvimdots that referenced this pull request Jan 16, 2025
* fix: some vim plugins get disabled by mistake

This commit addresses a few regressions introduced by ayamir#1340:

* The `tutor` plugin was accidentally disabled.
* netrw, along with its configuration, was mistakenly disabled.
* EditorConfig is now being implicitly disabled, which wasn't intended
  before ayamir#1340.

Signed-off-by: Jint-lzxy <[email protected]>

* clean up

* fix: EditorConfig should have been disabled

Signed-off-by: Jint-lzxy <[email protected]>

* fix: disable `editorconfig` via `lazy.nvim`

* chore: move netrw_liststyle to `core/options.lua`

---------

Signed-off-by: Jint-lzxy <[email protected]>
Co-authored-by: CharlesChiuGit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants