mirror of
https://github.com/Ascyii/nvim.git
synced 2026-01-01 04:04:24 -05:00
small modifications and remove dashboard
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
local alpha = require("alpha")
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
|
||||
dashboard.section.header.val = {
|
||||
[[░█████╗░░██████╗░█████╗░██╗░░░██╗██╗██╗]],
|
||||
[[██╔══██╗██╔════╝██╔══██╗╚██╗░██╔╝██║██║]],
|
||||
[[███████║╚█████╗░██║░░╚═╝░╚████╔╝░██║██║]],
|
||||
[[██╔══██║░╚═══██╗██║░░██╗░░╚██╔╝░░██║██║]],
|
||||
[[██║░░██║██████╔╝╚█████╔╝░░░██║░░░██║██║]],
|
||||
[[╚═╝░░╚═╝╚═════╝░░╚════╝░░░░╚═╝░░░╚═╝╚═╝]],
|
||||
}
|
||||
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("e", "New File", ":ene <BAR> startinsert <CR>"),
|
||||
dashboard.button("r", "Recent Files", ":Telescope oldfiles<CR>"),
|
||||
dashboard.button("c", "Config", ":e $MYVIMRC<CR>"),
|
||||
dashboard.button("q", "Quit", ":qa<CR>"),
|
||||
}
|
||||
|
||||
dashboard.section.footer.val = "Welcome to Neovim! Enjoy!"
|
||||
|
||||
dashboard.section.header.opts.hl = "include"
|
||||
dashboard.section.buttons.opts.hl = "keyword"
|
||||
dashboard.section.footer.opts.hl = "type"
|
||||
|
||||
local screen_height = vim.fn.winheight(0)
|
||||
local content_height =
|
||||
#dashboard.section.header.val +
|
||||
#dashboard.section.buttons.val +
|
||||
#dashboard.section.footer.val
|
||||
|
||||
dashboard.opts.layout = {
|
||||
{ type = "padding", val = math.floor((screen_height - content_height) / 2) },
|
||||
dashboard.section.header,
|
||||
{ type = "padding", val = 2 },
|
||||
dashboard.section.buttons,
|
||||
{ type = "padding", val = 1 },
|
||||
dashboard.section.footer,
|
||||
}
|
||||
|
||||
alpha.setup(dashboard.opts)
|
||||
@@ -10,6 +10,7 @@ return {
|
||||
config = function()
|
||||
local ls = require("luasnip")
|
||||
|
||||
-- Load snippets
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
require("luasnip.loaders.from_lua").lazy_load({ paths = "~/.config/nvim/snippets" })
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@ return {
|
||||
},
|
||||
icons = {
|
||||
show = {
|
||||
file = false,
|
||||
folder = false,
|
||||
file = true,
|
||||
folder = true,
|
||||
folder_arrow = true,
|
||||
git = false,
|
||||
modified = false,
|
||||
|
||||
@@ -54,9 +54,9 @@ return {
|
||||
function()
|
||||
require('telescope.builtin').find_files({
|
||||
hidden = true,
|
||||
no_ignore = true, -- Also show files in gitignore
|
||||
no_ignore = true,
|
||||
follow = true,
|
||||
disable_devicons = true,
|
||||
disable_devicons = false,
|
||||
prompt_title = "Find Files",
|
||||
find_command = {
|
||||
"rg", "--files",
|
||||
|
||||
@@ -60,12 +60,4 @@ return {
|
||||
vim.keymap.set("n", "<leader>bd", ":BufferDelete<CR>")
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
require("dashboard")
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user