From 0b6dc571dbde61f4d1f2e1c3e7c50e2f30aaf7ec Mon Sep 17 00:00:00 2001 From: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com> Date: Fri, 16 Aug 2024 22:32:19 +0800 Subject: [PATCH] fix: EditorConfig should have been disabled Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com> --- lua/core/init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/core/init.lua b/lua/core/init.lua index 85ba8bff3..47d167ddc 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -22,6 +22,16 @@ local createdir = function() end end +local load_distribution_plugins = function() + -- 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. + vim.g.editorconfig = false + + -- Newtrw liststyle: https://medium.com/usevim/the-netrw-style-options-3ebe91d42456 + vim.g.netrw_liststyle = 3 +end + local leader_map = function() vim.g.mapleader = " " -- NOTE: @@ -96,6 +106,7 @@ end local load_core = function() createdir() + load_distribution_plugins() leader_map() gui_config()