From 360ec25387f17e0b7262bf0f41fb8b6a33de2325 Mon Sep 17 00:00:00 2001 From: jint_lzxy_ <50296129+Jint-lzxy@users.noreply.github.com> Date: Wed, 21 Aug 2024 18:24:04 +0800 Subject: [PATCH] fix: some vim plugins get disabled by mistake (#1341) * fix: some vim plugins get disabled by mistake 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 <50296129+Jint-lzxy@users.noreply.github.com> * clean up * fix: EditorConfig should have been disabled Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com> * fix: disable `editorconfig` via `lazy.nvim` * chore: move netrw_liststyle to `core/options.lua` --------- Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com> Co-authored-by: CharlesChiuGit --- lua/core/options.lua | 3 +++ lua/core/pack.lua | 13 +++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lua/core/options.lua b/lua/core/options.lua index d025abf07..72751e022 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -125,4 +125,7 @@ local function load_options() end end +-- Newtrw liststyle: https://medium.com/usevim/the-netrw-style-options-3ebe91d42456 +vim.g.netrw_liststyle = 3 + load_options() diff --git a/lua/core/pack.lua b/lua/core/pack.lua index d326b15bb..5f3f5a7ed 100644 --- a/lua/core/pack.lua +++ b/lua/core/pack.lua @@ -125,26 +125,27 @@ function Lazy:load_lazy() ---@type string[] paths = {}, -- add any custom paths here that you want to include in the rtp disabled_plugins = { + -- Set this to true in order to enable native EditorConfig support + -- WARN: 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. + "editorconfig", + -- Do not load spell files + "spellfile", -- Do not use builtin matchit.vim and matchparen.vim because we're using vim-matchup "matchit", "matchparen", - -- Do not load builtin netrw - "netrwPlugin", -- Do not load tohtml.vim "tohtml", -- Do not load zipPlugin.vim, gzip.vim and tarPlugin.vim (all of these plugins are -- related to reading files inside compressed containers) "gzip", "tarPlugin", - "tutor", "zipPlugin", -- Disable remote plugins -- NOTE: -- > Disabling rplugin.vim will make `wilder.nvim` complain about missing rplugins during :checkhealth, -- > but since it's config doesn't require python rtp (strictly), it's fine to ignore that for now. - "rplugin", - -- Do not load spell files - "spellfile", + -- "rplugin", }, }, },