summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-06-03 11:01:47 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-06-03 11:01:47 -0600
commit3d48fe1709852961dd06e5f1f5a849b217f4962d (patch)
tree433cf7d6ec2386034c72489fc8a87af3a21e7f74 /lua
parentfbdfc3dfe274ba0365bf02a972878bbcf0b2bf5c (diff)
move lualine and the colorscheme out of init, add neo tree
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/colorscheme.lua8
-rw-r--r--lua/plugins/init.lua28
-rw-r--r--lua/plugins/lualine.lua11
-rw-r--r--lua/plugins/neo-tree.lua19
4 files changed, 38 insertions, 28 deletions
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',
@@ -66,28 +62,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',
-- Enable `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 = {
+ { "<leader>nt", "<CMD>Neotree toggle<CR>", 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",
+ },
+ },
+}