updates
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
return {
|
||||
"goolord/alpha-nvim",
|
||||
event = "VimEnter",
|
||||
config = function()
|
||||
local alpha = require("alpha")
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
"goolord/alpha-nvim",
|
||||
event = "VimEnter",
|
||||
config = function()
|
||||
local alpha = require("alpha")
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
|
||||
-- Set header
|
||||
--dashboard.section.header.val = {
|
||||
--" ",
|
||||
--" ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ",
|
||||
--" ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ",
|
||||
--" ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ",
|
||||
--" ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ",
|
||||
--" ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ",
|
||||
--" ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ",
|
||||
--" ",
|
||||
--}
|
||||
--[[ dashboard.section.header.val = {
|
||||
-- Set header
|
||||
--dashboard.section.header.val = {
|
||||
--" ",
|
||||
--" ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ",
|
||||
--" ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ",
|
||||
--" ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ",
|
||||
--" ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ",
|
||||
--" ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ",
|
||||
--" ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ",
|
||||
--" ",
|
||||
--}
|
||||
--[[ dashboard.section.header.val = {
|
||||
" ",
|
||||
" ███████╗██╗ ██╗███████╗██╗ ██████╗ ██╗ ██╗██████╗ █████╗ ██████╗ ██╗ ██╗ ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗",
|
||||
" ██╔════╝██║ ██║██╔════╝██║ ██╔══██╗╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝ ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║",
|
||||
@@ -26,37 +26,37 @@ return {
|
||||
" ╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝",
|
||||
" ",
|
||||
} ]]
|
||||
dashboard.section.header.val = {
|
||||
" ",
|
||||
" ███████╗██╗ ██╗███████╗██╗ ██████╗ ██╗ ██╗██████╗ █████╗ ██████╗ ██╗ ██╗",
|
||||
" ██╔════╝██║ ██║██╔════╝██║ ██╔══██╗╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝",
|
||||
" ███████╗███████║█████╗ ██║ ██████╔╝ ╚████╔╝ ██████╔╝███████║██████╔╝█████╔╝ ",
|
||||
" ╚════██║██╔══██║██╔══╝ ██║ ██╔══██╗ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗██╔═██╗ ",
|
||||
" ███████║██║ ██║███████╗███████╗██████╔╝ ██║ ██████╔╝██║ ██║██║ ██║██║ ██╗",
|
||||
" ╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝",
|
||||
" ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗",
|
||||
" ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║",
|
||||
" ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║",
|
||||
" ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║",
|
||||
" ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║",
|
||||
" ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝",
|
||||
" ",
|
||||
}
|
||||
dashboard.section.header.val = {
|
||||
" ",
|
||||
" ███████╗██╗ ██╗███████╗██╗ ██████╗ ██╗ ██╗██████╗ █████╗ ██████╗ ██╗ ██╗",
|
||||
" ██╔════╝██║ ██║██╔════╝██║ ██╔══██╗╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝",
|
||||
" ███████╗███████║█████╗ ██║ ██████╔╝ ╚████╔╝ ██████╔╝███████║██████╔╝█████╔╝ ",
|
||||
" ╚════██║██╔══██║██╔══╝ ██║ ██╔══██╗ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗██╔═██╗ ",
|
||||
" ███████║██║ ██║███████╗███████╗██████╔╝ ██║ ██████╔╝██║ ██║██║ ██║██║ ██╗",
|
||||
" ╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝",
|
||||
" ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗",
|
||||
" ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║",
|
||||
" ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║",
|
||||
" ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║",
|
||||
" ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║",
|
||||
" ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝",
|
||||
" ",
|
||||
}
|
||||
|
||||
-- Set menu
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("e", " > New File", "<cmd>ene<CR>"),
|
||||
dashboard.button("\\", " > Toggle file explorer", "<cmd>NvimTreeToggle<CR>"),
|
||||
dashboard.button("SPC ff", " > Find File", "<cmd>Telescope find_files<CR>"),
|
||||
dashboard.button("SPC fs", " > Find Word", "<cmd>Telescope live_grep<CR>"),
|
||||
dashboard.button("SPC wr", " > Restore Session For Current Directory", "<cmd>SessionRestore<CR>"),
|
||||
dashboard.button("q", " > Quit NVIM", "<cmd>qa<CR>"),
|
||||
}
|
||||
-- Set menu
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("e", " > New File", "<cmd>ene<CR>"),
|
||||
dashboard.button("\\", " > Toggle file explorer", "<cmd>Neotree reveal<CR>"),
|
||||
dashboard.button("SPC ff", " > Find File", "<cmd>Telescope find_files<CR>"),
|
||||
dashboard.button("SPC fs", " > Find Word", "<cmd>Telescope live_grep<CR>"),
|
||||
dashboard.button("SPC wr", " > Restore Session For Current Directory", "<cmd>SessionRestore<CR>"),
|
||||
dashboard.button("q", " > Quit NVIM", "<cmd>qa<CR>"),
|
||||
}
|
||||
|
||||
-- Send config to alpha
|
||||
alpha.setup(dashboard.opts)
|
||||
-- Send config to alpha
|
||||
alpha.setup(dashboard.opts)
|
||||
|
||||
-- Disable folding on alpha buffer
|
||||
vim.cmd([[autocmd FileType alpha setlocal nofoldenable]])
|
||||
end,
|
||||
-- Disable folding on alpha buffer
|
||||
vim.cmd([[autocmd FileType alpha setlocal nofoldenable]])
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
return {
|
||||
"akinsho/bufferline.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
version = "*",
|
||||
opts = {
|
||||
options = {
|
||||
--mode = "tabs",
|
||||
separator_style = "slant",
|
||||
offsets = {
|
||||
{
|
||||
filetype = "NvimTree",
|
||||
text = "File Explorer",
|
||||
highlight = "Directory",
|
||||
separator = true -- use a "true" to enable the default, or set your own character
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
"akinsho/bufferline.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
version = "*",
|
||||
opts = {
|
||||
options = {
|
||||
--mode = "tabs",
|
||||
separator_style = "slant",
|
||||
offsets = {
|
||||
{
|
||||
filetype = "neo-tree",
|
||||
text = "File Explorer",
|
||||
highlight = "Directory",
|
||||
text_align = "center",
|
||||
separator = true, -- use a "true" to enable the default, or set your own character
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
37
lua/shelbybark/plugins/neo-tree.lua
Normal file
37
lua/shelbybark/plugins/neo-tree.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
-- Neo-tree is a Neovim plugin to browse the file system
|
||||
-- https://github.com/nvim-neo-tree/neo-tree.nvim
|
||||
|
||||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
version = "*",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
lazy = false,
|
||||
keys = {
|
||||
{ "\\", ":Neotree reveal<CR>", desc = "NeoTree reveal", silent = true },
|
||||
},
|
||||
opts = {
|
||||
default_component_configs = {
|
||||
indent = {
|
||||
with_expanders = true, -- show arrows next to folders
|
||||
expander_collapsed = "", -- closed icon
|
||||
expander_expanded = "", -- open icon (pick whatever you like)
|
||||
-- optional niceties:
|
||||
indent_size = 2,
|
||||
padding = 1,
|
||||
with_markers = true,
|
||||
expander_highlight = "NeoTreeExpander",
|
||||
},
|
||||
},
|
||||
filesystem = {
|
||||
window = {
|
||||
mappings = {
|
||||
["\\"] = "close_window",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
-- Neo-tree is a Neovim plugin to browse the file system
|
||||
-- https://github.com/nvim-neo-tree/neo-tree.nvim
|
||||
|
||||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
version = "*",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
lazy = false,
|
||||
keys = {
|
||||
{ "\\", ":Neotree reveal<CR>", desc = "NeoTree reveal", silent = true },
|
||||
},
|
||||
opts = {
|
||||
filesystem = {
|
||||
window = {
|
||||
mappings = {
|
||||
["\\"] = "close_window",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
-- nvim-tree plugin config:
|
||||
-- return {
|
||||
-- "nvim-tree/nvim-tree.lua",
|
||||
-- dependencies = "nvim-tree/nvim-web-devicons",
|
||||
-- config = function()
|
||||
-- local nvimtree = require("nvim-tree")
|
||||
--
|
||||
-- -- recommended settings from nvim-tree documentation
|
||||
-- vim.g.loaded_netrw = 1
|
||||
-- vim.g.loaded_netrwPlugin = 1
|
||||
--
|
||||
-- nvimtree.setup({
|
||||
-- view = {
|
||||
-- width = 35,
|
||||
-- -- relativenumber = true,
|
||||
-- },
|
||||
-- -- change folder arrow icons
|
||||
-- renderer = {
|
||||
-- indent_markers = {
|
||||
-- enable = true,
|
||||
-- },
|
||||
-- icons = {
|
||||
-- glyphs = {
|
||||
-- folder = {
|
||||
-- -- arrow_closed = "", -- arrow when folder is closed
|
||||
-- -- arrow_open = "", -- arrow when folder is open
|
||||
-- arrow_closed = "",
|
||||
-- arrow_open = "",
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- -- disable window_picker for
|
||||
-- -- explorer to work well with
|
||||
-- -- window splits
|
||||
-- actions = {
|
||||
-- open_file = {
|
||||
-- window_picker = {
|
||||
-- enable = false,
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- filters = {
|
||||
-- custom = { ".DS_Store", "__pycache__" },
|
||||
-- dotfiles = true,
|
||||
-- },
|
||||
-- git = {
|
||||
-- ignore = false,
|
||||
-- },
|
||||
-- })
|
||||
--
|
||||
-- -- set keymaps
|
||||
-- local keymap = vim.keymap -- for conciseness
|
||||
--
|
||||
-- keymap.set("n", "\\", "<cmd>NvimTreeToggle<CR>", { desc = "Toggle file explorer" }) -- toggle file explorer
|
||||
-- keymap.set("n", "<leader>ef", "<cmd>NvimTreeFindFileToggle<CR>", { desc = "Toggle file explorer on current file" }) -- toggle file explorer on current file
|
||||
-- keymap.set("n", "<leader>ec", "<cmd>NvimTreeCollapse<CR>", { desc = "Collapse file explorer" }) -- collapse file explorer
|
||||
-- keymap.set("n", "<leader>er", "<cmd>NvimTreeRefresh<CR>", { desc = "Refresh file explorer" }) -- refresh file explorer
|
||||
-- end
|
||||
-- }
|
||||
60
lua/shelbybark/unused-plugins/nvim-tree.lua
Normal file
60
lua/shelbybark/unused-plugins/nvim-tree.lua
Normal file
@@ -0,0 +1,60 @@
|
||||
nvim-tree plugin config:
|
||||
return {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
dependencies = "nvim-tree/nvim-web-devicons",
|
||||
config = function()
|
||||
local nvimtree = require("nvim-tree")
|
||||
|
||||
-- recommended settings from nvim-tree documentation
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
nvimtree.setup({
|
||||
view = {
|
||||
width = 35,
|
||||
-- relativenumber = true,
|
||||
},
|
||||
-- change folder arrow icons
|
||||
renderer = {
|
||||
indent_markers = {
|
||||
enable = true,
|
||||
},
|
||||
icons = {
|
||||
glyphs = {
|
||||
folder = {
|
||||
-- arrow_closed = "", -- arrow when folder is closed
|
||||
-- arrow_open = "", -- arrow when folder is open
|
||||
arrow_closed = "",
|
||||
arrow_open = "",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
-- disable window_picker for
|
||||
-- explorer to work well with
|
||||
-- window splits
|
||||
actions = {
|
||||
open_file = {
|
||||
window_picker = {
|
||||
enable = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
filters = {
|
||||
custom = { ".DS_Store", "__pycache__" },
|
||||
dotfiles = true,
|
||||
},
|
||||
git = {
|
||||
ignore = false,
|
||||
},
|
||||
})
|
||||
|
||||
-- set keymaps
|
||||
local keymap = vim.keymap -- for conciseness
|
||||
|
||||
keymap.set("n", "\\", "<cmd>NvimTreeToggle<CR>", { desc = "Toggle file explorer" }) -- toggle file explorer
|
||||
keymap.set("n", "<leader>ef", "<cmd>NvimTreeFindFileToggle<CR>", { desc = "Toggle file explorer on current file" }) -- toggle file explorer on current file
|
||||
keymap.set("n", "<leader>ec", "<cmd>NvimTreeCollapse<CR>", { desc = "Collapse file explorer" }) -- collapse file explorer
|
||||
keymap.set("n", "<leader>er", "<cmd>NvimTreeRefresh<CR>", { desc = "Refresh file explorer" }) -- refresh file explorer
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user