feat: several updates

This commit is contained in:
Muhammad Nauman Raza 2024-01-16 20:34:00 +00:00
parent 51d005185b
commit 3d4968c861
Signed by: devraza
GPG key ID: 91EAD6081011574B
4 changed files with 93 additions and 37 deletions

View file

@ -16,45 +16,48 @@ vim.opt.rtp:prepend(lazypath)
-- Setup the package manager with plugins and configuration options -- Setup the package manager with plugins and configuration options
require("lazy").setup({ require("lazy").setup({
-- Default theme
"devraza/kagayaki.nvim",
"folke/which-key.nvim", "folke/which-key.nvim",
"nvim-telescope/telescope.nvim", {
"nvim-telescope/telescope.nvim",
dependencies = { 'nvim-lua/plenary.nvim' },
},
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
"romgrk/barbar.nvim", "romgrk/barbar.nvim",
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
"devraza/particle.nvim",
{"ellisonleao/glow.nvim", config = true, cmd = "Glow"},
"rktjmp/lush.nvim",
{ {
"nvimdev/dashboard-nvim", "NeogitOrg/neogit",
dependencies = { dependencies = {
"nvim-tree/nvim-web-devicons",
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
} "sindrets/diffview.nvim",
"nvim-telescope/telescope.nvim",
},
config = true
}, },
{"ellisonleao/glow.nvim", config = true, cmd = "Glow"},
{ {
"max397574/better-escape.nvim",
config = function()
require("better_escape").setup()
end,
},
"rktjmp/lush.nvim",
{
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
version = false, version = false,
build = ":TSUpdate", build = ":TSUpdate",
opts = { opts = {
highlight = { enable = true }, highlight = { enable = true },
indent = { enable = true }, indent = { enable = true },
ensure_installed = { ensure_installed = "maintained",
"bash",
"diff",
"html",
"json",
"lua",
"markdown",
"python",
"rust",
"go",
"regex",
"toml",
"vim",
"yaml",
},
} }
} },
{
'goolord/alpha-nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
};
}) })
-- Imports from files -- Imports from files

View file

@ -1,14 +1,62 @@
require("dashboard").setup({ local alpha = require('alpha')
theme = 'hyper', local dashboard = require('alpha.themes.dashboard')
config = { local fn = vim.fn
header = { local config = dashboard.config
" quark.nvim",
"", local marginTopPercent = 0.3
}, local headerPadding = fn.max({2, fn.floor(fn.winheight(0) * marginTopPercent) })
shortcut = {
{ desc = 'Update', group = '@property', action = 'Lazy update', key = 'u' }, local ascii = {
{ desc = 'Files', group = '@property', action = 'Telescope find_files', key = 'f' }, " ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ",
}, " ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ",
footer = {}, " ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ",
}, " ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ",
}) " ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ",
" ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ",
" ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ",
" ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ",
" ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ",
" ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ",
" ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ",
}
local header = {
type = "text",
val = ascii,
opts = {
position = "center",
hl = "AlphaHeader",
},
}
local buttons = {
type = "group",
val = {
dashboard.button("SPC f f", "Find File "),
dashboard.button("SPC f g", "Find Word "),
dashboard.button("SPC f e", "Edit File "),
{ type = 'padding', val = 1 },
dashboard.button("SPC l u", "Update Plugins"),
},
opts = {
spacing = 1,
},
}
local section = {
header = header,
buttons = buttons
}
local config = {
layout = {
{ type = 'padding', val = headerPadding },
section.header,
{ type = 'padding', val = 2 },
section.buttons,
},
}
dashboard.opts = config
alpha.setup(dashboard.opts)

View file

@ -1,2 +1,4 @@
require 'core.options' require 'core.options'
require 'core.dashboard' require 'core.dashboard'
require 'core.keybinds'
require 'core.lualine'

View file

@ -34,6 +34,9 @@ o.relativenumber = true
o.signcolumn = "yes" o.signcolumn = "yes"
o.termguicolors = true o.termguicolors = true
-- Fix rendering of ASCII
o.linespace = -1
-- Do not wrap lines -- Do not wrap lines
o.wrap = false o.wrap = false