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
require("lazy").setup({
-- Default theme
"devraza/kagayaki.nvim",
"folke/which-key.nvim",
"nvim-telescope/telescope.nvim",
{
"nvim-telescope/telescope.nvim",
dependencies = { 'nvim-lua/plenary.nvim' },
},
"neovim/nvim-lspconfig",
"romgrk/barbar.nvim",
"nvim-lualine/lualine.nvim",
"devraza/particle.nvim",
{"ellisonleao/glow.nvim", config = true, cmd = "Glow"},
"rktjmp/lush.nvim",
{
"nvimdev/dashboard-nvim",
"NeogitOrg/neogit",
dependencies = {
"nvim-tree/nvim-web-devicons",
"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",
version = false,
build = ":TSUpdate",
opts = {
highlight = { enable = true },
indent = { enable = true },
ensure_installed = {
"bash",
"diff",
"html",
"json",
"lua",
"markdown",
"python",
"rust",
"go",
"regex",
"toml",
"vim",
"yaml",
},
ensure_installed = "maintained",
}
}
},
{
'goolord/alpha-nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
};
})
-- Imports from files

View file

@ -1,14 +1,62 @@
require("dashboard").setup({
theme = 'hyper',
config = {
header = {
" quark.nvim",
"",
},
shortcut = {
{ desc = 'Update', group = '@property', action = 'Lazy update', key = 'u' },
{ desc = 'Files', group = '@property', action = 'Telescope find_files', key = 'f' },
},
footer = {},
},
})
local alpha = require('alpha')
local dashboard = require('alpha.themes.dashboard')
local fn = vim.fn
local config = dashboard.config
local marginTopPercent = 0.3
local headerPadding = fn.max({2, fn.floor(fn.winheight(0) * marginTopPercent) })
local ascii = {
" ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ",
" ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ",
" ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ",
" ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ",
" ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ",
" ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ",
" ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ",
" ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ",
" ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ",
" ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ",
" ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ",
}
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.dashboard'
require 'core.keybinds'
require 'core.lualine'

View file

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