From 1ced67bce945ed547c0d05a8b34d7639937620c9 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sun, 15 Oct 2023 18:17:24 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20:=20=C3=A9galisation=20de=20l'arbre=20d?= =?UTF-8?q?es=20modules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/nvim/init.lua | 8 +++----- config/nvim/lua/core/init.lua | 3 +++ config/nvim/lua/core/plugins/init.lua | 3 --- config/nvim/lua/{core => }/lsp/init.lua | 2 +- config/nvim/lua/{core => }/lsp/rust_analyzer.lua | 0 config/nvim/lua/plugins/init.lua | 3 +++ config/nvim/lua/{core => }/plugins/lualine.lua | 0 config/nvim/lua/{core => }/plugins/nvim_tree.lua | 0 config/nvim/lua/plugins/nvim_web_devicons.lua | 1 + 9 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 config/nvim/lua/core/init.lua delete mode 100644 config/nvim/lua/core/plugins/init.lua rename config/nvim/lua/{core => }/lsp/init.lua (75%) rename config/nvim/lua/{core => }/lsp/rust_analyzer.lua (100%) create mode 100644 config/nvim/lua/plugins/init.lua rename config/nvim/lua/{core => }/plugins/lualine.lua (100%) rename config/nvim/lua/{core => }/plugins/nvim_tree.lua (100%) create mode 100644 config/nvim/lua/plugins/nvim_web_devicons.lua diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 02ebf4b..abdb550 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -2,8 +2,6 @@ vim.cmd [[ source ~/.vimrc ]] -- Modules -require('core.plugins') -require('core.opts') -require('core.keymaps') -require('core.style') -require('core.lsp') +require('core') +require('plugins') +require('lsp') diff --git a/config/nvim/lua/core/init.lua b/config/nvim/lua/core/init.lua new file mode 100644 index 0000000..abc9737 --- /dev/null +++ b/config/nvim/lua/core/init.lua @@ -0,0 +1,3 @@ +require('core.opts') +require('core.keymaps') +require('core.style') diff --git a/config/nvim/lua/core/plugins/init.lua b/config/nvim/lua/core/plugins/init.lua deleted file mode 100644 index f097487..0000000 --- a/config/nvim/lua/core/plugins/init.lua +++ /dev/null @@ -1,3 +0,0 @@ -require("nvim-web-devicons") -require("core.plugins.lualine") -require("core.plugins.nvim_tree") diff --git a/config/nvim/lua/core/lsp/init.lua b/config/nvim/lua/lsp/init.lua similarity index 75% rename from config/nvim/lua/core/lsp/init.lua rename to config/nvim/lua/lsp/init.lua index a5f4146..fa209f6 100644 --- a/config/nvim/lua/core/lsp/init.lua +++ b/config/nvim/lua/lsp/init.lua @@ -4,4 +4,4 @@ on_attach = function(client) require'completion'.on_attach(client) end -require('core.lsp.rust_analyzer') +require('lsp.rust_analyzer') diff --git a/config/nvim/lua/core/lsp/rust_analyzer.lua b/config/nvim/lua/lsp/rust_analyzer.lua similarity index 100% rename from config/nvim/lua/core/lsp/rust_analyzer.lua rename to config/nvim/lua/lsp/rust_analyzer.lua diff --git a/config/nvim/lua/plugins/init.lua b/config/nvim/lua/plugins/init.lua new file mode 100644 index 0000000..60310ac --- /dev/null +++ b/config/nvim/lua/plugins/init.lua @@ -0,0 +1,3 @@ +require("plugins.nvim_web_devicons") +require("plugins.lualine") +require("plugins.nvim_tree") diff --git a/config/nvim/lua/core/plugins/lualine.lua b/config/nvim/lua/plugins/lualine.lua similarity index 100% rename from config/nvim/lua/core/plugins/lualine.lua rename to config/nvim/lua/plugins/lualine.lua diff --git a/config/nvim/lua/core/plugins/nvim_tree.lua b/config/nvim/lua/plugins/nvim_tree.lua similarity index 100% rename from config/nvim/lua/core/plugins/nvim_tree.lua rename to config/nvim/lua/plugins/nvim_tree.lua diff --git a/config/nvim/lua/plugins/nvim_web_devicons.lua b/config/nvim/lua/plugins/nvim_web_devicons.lua new file mode 100644 index 0000000..7c411e7 --- /dev/null +++ b/config/nvim/lua/plugins/nvim_web_devicons.lua @@ -0,0 +1 @@ +require('nvim-web-devicons')