Skip to content

Commit

Permalink
fix: EditorConfig should have been disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Jint-lzxy <[email protected]>
  • Loading branch information
Jint-lzxy committed Aug 16, 2024
1 parent 35ea334 commit 0b6dc57
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lua/core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -96,6 +106,7 @@ end

local load_core = function()
createdir()
load_distribution_plugins()
leader_map()

gui_config()
Expand Down

0 comments on commit 0b6dc57

Please sign in to comment.