From ca280408bcded469cd549004326fd699400f6aba Mon Sep 17 00:00:00 2001 From: CharlesChiuGit Date: Tue, 20 Aug 2024 10:52:10 +0800 Subject: [PATCH] chore: move netrw_liststyle to `core/options.lua` --- lua/core/init.lua | 6 ------ lua/core/options.lua | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lua/core/init.lua b/lua/core/init.lua index 230c6770d..85ba8bff3 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -22,11 +22,6 @@ local createdir = function() end end -local load_distribution_plugins = function() - -- 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: @@ -101,7 +96,6 @@ end local load_core = function() createdir() - load_distribution_plugins() leader_map() gui_config() 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()