Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring nvim to parity with old setup #51

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ test.sh
nvim

spell/
lazy-lock.json
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ vim.g.mapleader = ' '
vim.g.maplocalleader = ' '

-- Set to true if you have a Nerd Font installed and selected in the terminal
vim.g.have_nerd_font = false
vim.g.have_nerd_font = true

-- [[ Setting options ]]
require 'options'
Expand Down
40 changes: 40 additions & 0 deletions lazy-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"LuaSnip": { "branch": "master", "commit": "33b06d72d220aa56a7ce80a0dd6f06c70cd82b9d" },
"alpha-nvim": { "branch": "main", "commit": "de72250e054e5e691b9736ee30db72c65d560771" },
"bufferline.nvim": { "branch": "main", "commit": "5726c4e291224181903e960119a11e20ac677a0a" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"conform.nvim": { "branch": "master", "commit": "339b3e4519ec49312d34fcfa275aa15bfaa67025" },
"dressing.nvim": { "branch": "master", "commit": "3a45525bb182730fe462325c99395529308f431e" },
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
"gitsigns.nvim": { "branch": "main", "commit": "5f808b5e4fef30bd8aca1b803b4e555da07fc412" },
"indent-blankline.nvim": { "branch": "master", "commit": "259357fa4097e232730341fa60988087d189193a" },
"lazy.nvim": { "branch": "main", "commit": "7e6c863bc7563efbdd757a310d17ebc95166cef3" },
"lazydev.nvim": { "branch": "main", "commit": "8620f82ee3f59ff2187647167b6b47387a13a018" },
"leap.nvim": { "branch": "main", "commit": "c6bfb191f1161fbabace1f36f578a20ac6c7642c" },
"lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" },
"luvit-meta": { "branch": "main", "commit": "57d464c4acb5c2e66bd4145060f5dc9e96a7bbb7" },
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
"marks.nvim": { "branch": "master", "commit": "bb25ae3f65f504379e3d08c8a02560b76eaf91e8" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "2daa8921b7afdcfa47419a21ea343c3df6d74fa0" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"nvim-autopairs": { "branch": "master", "commit": "b464658e9b880f463b9f7e6ccddd93fb0013f559" },
"nvim-cmp": { "branch": "main", "commit": "b555203ce4bd7ff6192e759af3362f9d217e8c89" },
"nvim-lspconfig": { "branch": "master", "commit": "c580f34bc5fdca8aaf737a9ab8a5d775cb940e57" },
"nvim-treesitter": { "branch": "master", "commit": "096babebf6daef2a046650883082ed2b3dcc5b67" },
"nvim-web-devicons": { "branch": "master", "commit": "c1a86a2c386c55efc02fa2ec2c3a914af653d954" },
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
"telescope-file-browser.nvim": { "branch": "master", "commit": "626998e5c1b71c130d8bc6cf7abb6709b98287bb" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "dae2eac9d91464448b584c7949a31df8faefec56" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
"tokyonight.nvim": { "branch": "main", "commit": "45d22cf0e1b93476d3b6d362d720412b3d34465c" },
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
"which-key.nvim": { "branch": "main", "commit": "8ab96b38a2530eacba5be717f52e04601eb59326" }
}
65 changes: 65 additions & 0 deletions lua/custom/plugins/alpha-nvim.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
return {
'goolord/alpha-nvim',
-- dependencies = { 'echasnovski/mini.icons' },
dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function()
local alpha = require 'alpha'
local dashboard = require 'alpha.themes.dashboard'

local function header()
return {
' ',
' ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⠀ ⠀⠀⠀⠀⠀⠀⠀⢀⣀⣤⣤⣤⣶⣾⣿⡿⠛⣒⣢⠀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⠀⠀⠀⠀⠀⢠⣴⣿⣿⣿⣿⣿⠟⢛⣫⣭⣤⣬⡛⠋⢰⣶⢶⣯⣟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⠀⠀⠀⣠⡾⣻⡽⣭⠙⣫⣥⣶⠿⠿⢛⣛⡛⣿⣿⡆⢻⣾⣿⣽⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⠀ ⠀⣸⠏⠀⠘⢟⠃⢸⡿⠃⠤⠞⠛⣛⡿⢃⣿⣿⢇⣾⡿⡟⣧⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⠀ ⢰⡟⢠⣴⣄⠀⢠⣈⠿⠶⠶⠞⣛⣩⣶⣿⣿⠋⡞⡜⢠⢱⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⢠⣾⢡⣾⣿⣿⣦⣈⠻⣷⣶⣶⣾⣿⣿⣿⠟⠁⠔⢀⠃⠟⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⣸⣿⣿⡟⠃⠙⣿⣿⣷⣮⣭⣉⣩⣭⣤⣴⣦⠀⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⣿⣿⣿⠃⢀⣤⣤⣍⡻⠿⢿⣿⣿⣿⣿⣿⣿⡀⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⣿⣿⡿⢰⣿⠟⠛⠻⣷⡀⠀⠀⣠⣾⣿⣿⣿⣇⢻⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣤⣤⣀⠀⠀⠀⠀⠀',
' ⣿⣿⡇⣾⣿⠀⠀⠀⢹⡇⠀⣰⣿⣿⠟⠉⣀⣤⣤⣻⣿⣷⣦⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⣿⣿⣿⣦⡀⠀⠀',
' ⢿⣿⡇⢿⣿⠀⠀⠀⢸⡇⢠⣿⡿⢋⣴⣾⣿⡿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣶⣶⣶⣤⣤⣤⣤⣤⣤⣄⣀⠀⠀⠀⠀⢀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⣿⣿⣷⡀⠀',
' ⢸⣿⣷⢸⣿⠀⢰⡄⣼⠇⣾⣿⢱⣿⡏⠉⠀⣴⣦⡄⠉⠛⣿⣿⣿⣿⣿⣿⣿⣿⡿⠛⠋⣉⣭⣥⣶⣶⣶⣾⣿⣿⣿⣷⣶⣦⡈⠻⣿⣿⣿⣶⣦⣤⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣷⠀',
' ⠈⢿⣿⡈⢻⣧⠀⠹⠏⢰⣿⡇⢹⣿⠀⠀⠀⡿⠛⢿⣧⠀⠈⢿⣿⣿⣿⠟⣫⣵⠶⠾⠟⠛⠛⠛⠛⠛⠛⠿⠿⢿⣿⣿⣿⣿⣿⠀⢸⣿⣿⣿⣿⣿⣿⣿⣶⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣹⣿⡿⣿⣿⣧',
' ⠘⣿⣧⡀⢻⣧⡀⠀⢸⣿⠇⠘⣿⡇⠀⠀⡇⠀⠀⢿⣷⠀⢸⣿⠟⣡⣿⠋⠀⠀⠀⠀⠀⠀⣀⣀⣤⣤⣤⣤⣤⡄⢹⣿⣿⡇⠀⠘⠋⢉⣀⣤⣤⣤⣄⣙⡻⢷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⠇⢸⣿⣿',
'⠀ ⠀ ⠘⢿⣷⡀⠹⢿⣶⣤⣿⡇⠀⠘⣿⣤⣀⣀⣠⣤⣾⠿⠃⠼⠉⣰⡿⠁⠀⠀⢀⣰⣶⡾⠿⠿⠿⠿⠿⣿⣿⣿⠏⢸⣿⡟⠀⣠⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣭⣷⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⠏⠀⣼⣿⡏',
'⠀ ⠀⠀ ⠈⠻⣿⣄⠀⠙⠻⠿⣷⢠⡄⠉⠉⣛⣛⣛⣋⣁⣀⡀⠀⣠⣿⠁⠀⠀⣴⣿⠟⠁⠀⠀⢀⡀⠀⣠⣿⣿⠏⢀⣾⡿⢁⣼⣿⡿⠟⠛⠉⠉⠉⠙⠻⠿⣿⣿⣿⣷⡻⣿⣦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣿⡿⣉⣴⢠⣿⣿⠀',
'⠀ ⠀⠀ ⠀⠀⠈⠙⠳⡄⠀⣀⡴⠋⢁⣼⣿⢛⣹⣭⣯⡛⣻⣷⢠⣿⡇⠀⠀⣼⣿⣥⣤⣶⠖⠊⠁⢠⣾⣿⣿⠏⢠⣾⡟⣵⣿⠟⠁⠀⠀⢀⣤⣴⣶⣦⡀⠀⠘⢻⣿⣿⡇⢻⣿⣿⣿⣿⣶⣦⣤⣄⣀⡀⠀⣀⣠⣤⣤⣶⣿⣿⠟⢫⣽⣾⣿⢡⣿⣿⠃⠀',
'⠀ ⠀⠀ ⠀⠀⣀⣤⣶⣾⣿⠋⠀⠐⠿⠿⣿⣶⠶⠾⠛⢁⣿⡏⣸⣿⠀⠀⠀⠙⠛⠋⠁⢀⣀⣴⣾⣿⣿⡿⢋⣴⣿⣟⣿⡿⠋⠀⣠⣴⣾⠿⠟⠛⠛⢿⣿⣶⡄⠀⢻⣿⣷⠀⣿⣿⣿⣿⣿⣿⣿⠿⠿⠿⠿⠿⠿⠟⢛⣋⣥⣶⣾⣿⣿⠏⣠⣿⡿⠁⠀⠀',
'⠀ ⠀⠀⢀⣼⣿⣿⣿⣿⣿⣧⣤⣤⣤⣠⣤⣤⣤⣤⣴⣿⣿⡇⣿⣿⣤⣤⣤⣤⣤⣶⣿⣿⣿⠿⠟⠛⢃⣴⣿⡿⢣⣾⣿⠃⠀⣼⣿⠟⠁⠀⣠⣤⣶⣄⢻⣿⣿⡄⠀⢿⣿⠀⣼⣷⠙⣿⣿⣧⠀⠀⠀⠤⠀⠰⠞⠛⢛⣿⣿⣿⡿⠋⢀⣼⣿⡟⠁⠀⠀⠀',
'⠀ ⠀⢰⣿⣿⣿⣿⣿⣿⠟⠛⠛⢻⣿⣛⣛⠿⠿⠿⠿⠿⠛⠉⠛⠛⠛⠛⠛⠛⠉⠉⠉⢀⣀⣠⣴⣾⣿⡿⠟⠀⣿⣿⠇⢀⣼⡿⠁⢀⣴⠿⠟⠙⠿⣿⣆⠹⣿⣿⣄⠸⣿⠀⣿⣿⣄⠈⢿⣿⣷⣦⣴⣶⣶⣶⣾⣿⠿⠟⠋⢁⣤⣾⣿⠟⠉⠀⠀⠀⠀⠀',
' ⠀ ⢠⣿⣿⣿⣿⣿⣿⡏⠀⠀⠀⠈⢿⣿⠛⡛⢶⣶⢌⠳⠶⣶⣶⣤⣤⣤⣤⣤⣶⣶⣶⣿⣿⣿⣿⣿⣿⡥⠄⢸⣿⣿⠀⢸⣿⣇⠐⠋⠁⠀⠀⠀⠀⣿⣿⣄⢿⣿⣿⡀⠟⢠⣿⣿⣿⣦⣌⣙⣛⣛⣛⣛⣛⣉⣉⣠⣤⣤⣶⣿⠿⠋⠁⠀⠀⠀⠀⠀⠀⠀',
' ⠀ ⣼⣿⣿⣿⣿⢿⣿⡇⠀⠀⠀⠀⠈⣿⣷⡌⠚⣡⣾⠀⠀⠀⠉⠉⠛⠛⠛⠛⠛⠿⠟⠻⠛⠛⠛⠉⠁⠀⠀⢸⣿⣿⣄⠘⠛⠻⣿⣿⣿⣶⣾⣿⣿⣿⠟⠋⢸⣿⣿⣧⠀⢾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⠀ ⠹⠋⠸⣿⠛⠃⠙⠧⠀⠀⠀⠀⢰⣿⣿⣿⣿⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⠿⣿⣷⣶⣤⣄⣀⣀⠀⠀⠀⣀⣀⣀⣀⣼⣿⣿⣿⠀⠀⠀⠀⠀⠉⠉⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⠀ ⠀ ⠀⠀⠀⠀⠀⠀⢀⣤⢴⣾⣿⣿⣿⣿⣿⣿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢛⠻⢿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⠀⠀⠀⠀⠀ ⠀ ⠀⠐⠛⠼⠿⠟⡹⠿⠿⠛⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣾⣿⣭⣥⣶⠞⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⠛⠛⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠟⠿⠟⠛⠛⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
' ',
' ',
}
end

dashboard.section.header.val = header()

dashboard.section.buttons.val = {
dashboard.button('e', ' New file', ':ene <BAR> startinsert <CR>'),
dashboard.button('c', ' Configuration', ':e $MYVIMRC <CR>'),
dashboard.button('q', ' Quit Neovim', ':qa<CR>'),
}

local datetime = os.date '%d-%m-%Y  %H:%M:%S'

dashboard.section.footer.val = datetime

dashboard.section.footer.opts.hl = 'Constant'
dashboard.section.header.opts.hl = 'Include'
dashboard.section.buttons.opts.hl = 'Function'
dashboard.section.buttons.opts.hl_shortcut = 'Type'
dashboard.opts.opts.noautocmd = true

alpha.setup(dashboard.opts)
end,
}
17 changes: 17 additions & 0 deletions lua/custom/plugins/bufferline.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
return {
'akinsho/bufferline.nvim',
version = '*',
dependencies = 'nvim-tree/nvim-web-devicons',
config = function()
require('bufferline').setup {
options = {
numbers = 'none',
diagnostics = 'nvim_lsp',
separator_style = 'slant' or 'padded_slant',
show_tab_indicators = true,
show_buffer_close_icons = false,
show_close_icon = false,
},
}
end,
}
11 changes: 11 additions & 0 deletions lua/custom/plugins/dressing.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
return {
'stevearc/dressing.nvim',
opts = {},
config = function()
require('dressing').setup {
select = {
backend = { 'telescope', 'builtin' },
},
}
end,
}
8 changes: 8 additions & 0 deletions lua/custom/plugins/leap.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
'ggandor/leap.nvim',
keys = { 's', 'S' },
config = function()
local leap = require 'leap'
leap.set_default_keymaps()
end,
}
100 changes: 100 additions & 0 deletions lua/custom/plugins/lualine.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
return {
'nvim-lualine/lualine.nvim',
dependencies = {
-- Useful for getting pretty icons, but requires a Nerd Font.
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },
},
config = function()
-- Color table for highlights
local colors = {
bg = '#202328',
fg = '#bbc2cf',
yellow = '#ECBE7B',
cyan = '#008080',
darkblue = '#081633',
green = '#98be65',
orange = '#FF8800',
violet = '#a9a1e1',
magenta = '#c678dd',
blue = '#51afef',
red = '#ec5f67',
}

local function separator()
return '%='
end

local function lsp_client()
local buf_clients = vim.lsp.get_clients()
if next(buf_clients) == nil then
return ''
end
local buf_client_names = {}
for _, client in pairs(buf_clients) do
if client.name ~= 'null-ls' then
table.insert(buf_client_names, client.name)
end
end
return '[' .. table.concat(buf_client_names, ', ') .. ']'
end

local function lsp_progress(_, is_active)
if not is_active then
return
end
local messages = vim.lsp.status()
if #messages == 0 then
return ''
end
local status = {}
for _, msg in pairs(messages) do
local title = ''
if msg.title then
title = msg.title
end
table.insert(status, (msg.percentage or 0) .. '%% ' .. title)
end
local spinners = { '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏' }
local ms = vim.loop.hrtime() / 1000000
local frame = math.floor(ms / 120) % #spinners
return table.concat(status, '  ') .. ' ' .. spinners[frame + 1]
end

function setup()
require('lualine').setup {
options = {
icons_enabled = true,
theme = 'horizon',
component_separators = {},
section_separators = {},
disabled_filetypes = {},
always_divide_middle = true,
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'branch', 'diff', 'diagnostics' },
lualine_c = {
{ separator },
{ lsp_client, icon = '', color = { fg = colors.violet, gui = 'bold' } },
{ lsp_progress },
},
lualine_x = { 'filename', 'encoding', 'fileformat', 'filetype' },
lualine_y = { 'progress' },
lualine_z = { 'location' },
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { 'filename' },
lualine_x = { 'location' },
lualine_y = {},
lualine_z = {},
},
tabline = {},
extensions = {},
}
end

return setup()
end,
}
8 changes: 8 additions & 0 deletions lua/custom/plugins/markdown-preview.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
return {
'iamcco/markdown-preview.nvim',
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
ft = { 'markdown' },
build = function()
vim.fn['mkdp#util#install']()
end,
}
6 changes: 6 additions & 0 deletions lua/custom/plugins/marks.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
return {
'chentoast/marks.nvim',
config = function()
require('marks').setup {}
end,
}
4 changes: 4 additions & 0 deletions lua/custom/plugins/telescope-file-browser.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
return {
'nvim-telescope/telescope-file-browser.nvim',
dependencies = { 'nvim-telescope/telescope.nvim', 'nvim-lua/plenary.nvim' },
}
Loading