From 3d48fe1709852961dd06e5f1f5a849b217f4962d Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 3 Jun 2023 11:01:47 -0600 Subject: move lualine and the colorscheme out of init, add neo tree --- lua/plugins/colorscheme.lua | 8 ++++++++ lua/plugins/init.lua | 28 ---------------------------- lua/plugins/lualine.lua | 11 +++++++++++ lua/plugins/neo-tree.lua | 19 +++++++++++++++++++ 4 files changed, 38 insertions(+), 28 deletions(-) create mode 100644 lua/plugins/colorscheme.lua create mode 100644 lua/plugins/lualine.lua create mode 100644 lua/plugins/neo-tree.lua (limited to 'lua/plugins') diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua new file mode 100644 index 0000000..c1d9a11 --- /dev/null +++ b/lua/plugins/colorscheme.lua @@ -0,0 +1,8 @@ +return { + 'navarasu/onedark.nvim', + name = 'colorscheme', + priority = 1000, + config = function() + vim.cmd.colorscheme 'onedark' + end, +} diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index f89ea0a..b9f4cbb 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -1,7 +1,3 @@ --- You can add your own plugins here or in other files in this directory! --- I promise not to create any merge conflicts in this directory :) --- --- See the kickstart.nvim README for more information return { -- Git related plugins 'tpope/vim-fugitive', @@ -65,28 +61,6 @@ return { }, }, - { - -- Theme inspired by Atom - 'navarasu/onedark.nvim', - priority = 1000, - config = function() - vim.cmd.colorscheme 'onedark' - end, - }, - - { - -- Set lualine as statusline - 'nvim-lualine/lualine.nvim', - opts = { - options = { - icons_enabled = false, - theme = 'onedark', - component_separators = '|', - section_separators = '', - }, - }, - }, - { -- Add indentation guides even on blank lines 'lukas-reineke/indent-blankline.nvim', @@ -121,5 +95,3 @@ return { build = ':TSUpdate', }, } - --- vim: ts=2 sts=2 sw=2 et diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua new file mode 100644 index 0000000..350777d --- /dev/null +++ b/lua/plugins/lualine.lua @@ -0,0 +1,11 @@ +return { + 'nvim-lualine/lualine.nvim', + opts = { + options = { + icons_enabled = false, + theme = 'colorscheme', + component_separators = '|', + section_separators = '', + }, + }, +} diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua new file mode 100644 index 0000000..16d69c8 --- /dev/null +++ b/lua/plugins/neo-tree.lua @@ -0,0 +1,19 @@ +return { + "nvim-neo-tree/neo-tree.nvim", + cmd = "Neotree", + version = "*", + keys = { + { "nt", "Neotree toggle", desc = "Toggle [N]eo[t]ree" }, + }, + dependencies = { + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + "nvim-tree/nvim-web-devicons", + }, + opts = { + filesystem = { + follow_current_file = true, + hijack_netrw_behavior = "open_current", + }, + }, +} -- cgit v1.2.3-54-g00ecf