-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add nvim dashboard, mappings and wakatime
- Loading branch information
1 parent
f5a6580
commit c6997b4
Showing
3 changed files
with
207 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
return { | ||
'nvimdev/dashboard-nvim', | ||
event = 'VimEnter', | ||
config = function() | ||
local dashboard = require('dashboard') | ||
local headers = { | ||
{ | ||
"", | ||
" ββββ βββββββββββ βββββββ βββ ββββββββββ ββββ", | ||
" βββββ βββββββββββββββββββββββ βββββββββββ βββββ", | ||
" ββββββ βββββββββ βββ ββββββ βββββββββββββββββ", | ||
" ββββββββββββββββ βββ βββββββ ββββββββββββββββββ", | ||
" βββ βββββββββββββββββββββββ βββββββ ββββββ βββ βββ", | ||
" βββ βββββββββββββ βββββββ βββββ ββββββ βββ", | ||
"", | ||
}, | ||
{ | ||
"", | ||
" βββββββββββββββββββββββββββββ", | ||
" β $ nvim init.lua β", | ||
" β βββββββββββββββββββββββ β", | ||
" β β require('plugins') β β", | ||
" β β require('config') β β", | ||
" β β require('theme') β β", | ||
" β βββββββββββββββββββββββ β", | ||
" β [+] Ready to code β", | ||
" βββββββββββββββββββββββββββββ", | ||
"", | ||
}, | ||
{ | ||
"", | ||
" C7 77/7~7(~ ", | ||
" @@@@@/ S7@@~@ @K ", | ||
" ^@@K@@BK~ N E O V I M 7@@@BSS(S7CC7 ", | ||
" @S@@~(S@@@R @@@/777((77S7@7 ", | ||
" ^S@@@(7@@@@/ S@@B@77(~@7@KKS/ ", | ||
" 7@@B(~(7S@@B@7 K@@@B~7((~(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K@7~ 7@ 7S ~@/@B@7@7/7 ", | ||
" /@^SS ~C@@BKC// 77@~/S S7K@@7^K/ ", | ||
" S@K SCKS~^ @ ~/ 7 R/ 7@ ^7 S@~ ", | ||
" S@S~~@@@@S( ~(S SS C7 K 7S ~@SCS77@S ", | ||
" @S /7@B~ @~KKB/~@ ~7 @/ @ 7/K 7@ (@@ @ SS @@7@^ ", | ||
" @ 7@~ 77@7S7SR (7 K @ S~ @KS7K BS SB(~B 7SS( @ ", | ||
" @@ 7^ S~RC~@7C KR^~R7 @ ^S RSK~@~^@C (@~ ~C @K / ", | ||
" @ /7@C ~S@77~ CK7@C@@~BS@~CC7@7@CS @S@ @ @7 ", | ||
" @@CC (K @~ C 7CC7@CB@~B7@7KK @K77C (7KS ^/ ", | ||
" S ( (/S~ /@7~S7 @7S7 S@SS/7@@@~@ @77 7 ", | ||
" @@@B@@@S@ C7/7 S7S@^@@ @@B R77@K77K@ SB ", | ||
" R/~ 77@S7 @@ @@@ S(/7@K @ ", | ||
" /R ( S(~S ", | ||
"", | ||
}, | ||
{ | ||
"", | ||
" .-'''''-. ", | ||
" .' `. ", | ||
" N E O V I M : ", | ||
" : : ", | ||
" : _/| : ", | ||
" : =/_/ : ", | ||
" `._/ | .' ", | ||
" ( / ,|...-' ", | ||
" \\_/^\\/||__ ", | ||
" _/~ `\"\"~`\"` \\_ ", | ||
" __/ -'/ `-._ `\\_\\__ ", | ||
" /jgs /-'` `\\ \\ \\-.\\ ", | ||
"", | ||
}, | ||
{ | ||
"", | ||
"β β β β β β£β£ β£€β£€β£€β£€β£β£β β β β β ", | ||
"β β β’⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦β‘β β ", | ||
"β ⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿β β’Ώβ£Ώβ£·β‘β ", | ||
"β£Έβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ β β ⣴Ⓙ⣿⣧β ", | ||
"β£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ‘Ώβ ⣩β β β β β β β’ β£Ώβ£Ώβ‘ ", | ||
"β£Ώβ‘Ώβ β β β β β β β β β β β’ β£Ώβ£Ώβ£Ώβ£Ώ ", | ||
"β’Ήβ£Ώβ£€β β β β β β β β β β’ β£Ώβ£Ώβ£Ώβ£Ώβ‘ ", | ||
"β β »β‘β β β β β β β β β β’Ώβ£Ώβ£Ώβ£Ώβ β ", | ||
"β β β β β β β β β β β β β β’»β β β β ", | ||
"β β N E O V I M ", | ||
"", | ||
}, | ||
{ | ||
"", | ||
" ⣴⣢⣀⑀⠦⣀β£β£€β β£β£β£Ώβ£Άβ£Ώβ£¦β£Όβ£ ", | ||
" β ⠻Ⓙ⣿⠿⣿⣿⣢⣦⠀β β‘ β’Ύβ£Ώβ£Ώβ‘Ώβ β β β »β£Ώβ£Ώβ‘⣦ ", | ||
" β β’Ώβ£Ώβ£β ¦ β£Ύβ£Ώβ£Ώβ£· ⠻⠿Ⓙ⣿⣧⣠", | ||
" β£Έβ£Ώβ£Ώβ’§ β’»β »β£Ώβ£Ώβ£·β£β£β β ’β£β‘β β β Ώβ ", | ||
" β’ β£Ώβ£Ώβ£Ώβ β£»β£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£β£³β£€β£β£ ", | ||
" ⒠⣧⣢β£₯β‘€β’ β£Έβ£Ώβ£Ώβ β’⣴⣿⣿⑿β ⣿⣿⣧β β’Ώβ Ώβ β β »β Ώβ ", | ||
" β£°β£Ώβ£Ώβ ⠻⣿⣿⑦Ⓓ⣿⣷ β’β£Ώβ£Ώβ‘ β’Έβ£Ώβ£Ώβ‘ β’β£ β£β£Ύβ ", | ||
" β£ β£Ώβ Ώβ β’β£Ώβ£Ώβ£·β Ⓙ⣿⣦①ⒸⒿ⣿⣿⣠⣸⣿⣿β‘β£ͺβ£Ώβ‘Ώβ Ώβ£Ώβ£·β‘ ", | ||
" β β β£Όβ£Ώβ‘ β ⠻⣿⣿⣦β£β‘β »β£Ώβ£Ώβ£·β£Ώβ£Ώβ£Ώ β£Ώβ£Ώβ‘ β β »β’·β£ ", | ||
" β’»β£Ώβ£Ώβ£ β β »β£Ώβ£Ώβ£Ώβ£·β£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ‘ β «β’Ώβ£Ώβ‘ ", | ||
" β »β£Ώβ£Ώβ£Ώβ£Ώβ£Άβ£Άβ£Ύβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ£Ώβ‘β’β£β£€β£Ύβ‘Ώβ ", | ||
"", | ||
" N E O V I M ", | ||
"", | ||
}, | ||
{ | ||
"", | ||
" ,", | ||
" ,-. _,---._ __ / \\", | ||
" / ) .-' `./ / \\", | ||
" ( ( ,' `/ /|", | ||
" \\ `-\" \\'\\ / |", | ||
" `. , \\ \\ / |", | ||
" /`. ,'-`----Y |", | ||
" ( ; | '", | ||
" | ,-. ,-' | /", | ||
" | | ( | hjw | /", | ||
" ) | \\ `.___________|/", | ||
" `--' `--'", | ||
"", | ||
" N E O V I M ", | ||
"", | ||
}, | ||
{ | ||
"", | ||
" (((( ", | ||
" (((( ", | ||
" )))) ", | ||
" _ .---. ", | ||
" ( |`---'| ", | ||
" \\| | ", | ||
" : .___, : ", | ||
" `-----' ", | ||
" N E O V I M ", | ||
"", | ||
}, | ||
} | ||
|
||
math.randomseed(os.time()) | ||
local random_header = headers[math.random(#headers)] | ||
dashboard.setup { | ||
theme = 'hyper', | ||
config = { | ||
header = random_header, | ||
shortcut = { | ||
{ desc = ' Find File', group = 'DashboardFiles', key = 'f', action = 'Telescope find_files' }, | ||
{ desc = ' Recent Files', group = 'DashboardFiles', key = 'r', action = 'Telescope oldfiles' }, | ||
{ desc = ' Find Word', group = 'DashboardFiles', key = 'w', action = 'Telescope live_grep' }, | ||
{ desc = ' New File', group = 'DashboardFiles', key = 'n', action = 'enew' }, | ||
{ desc = ' Settings', group = 'DashboardFiles', key = 's', action = 'e $MYVIMRC' }, | ||
{ desc = ' Update Plugins', group = 'DashboardFiles', key = 'u', action = 'Lazy update' }, | ||
}, | ||
packages = { | ||
enable = true -- Shows plugin count | ||
}, | ||
project = { | ||
enable = true, | ||
limit = 8, | ||
icon = '', | ||
label = 'Recent Projects', | ||
action = 'Telescope find_files cwd=' | ||
}, | ||
mru = { | ||
enable = true, | ||
limit = 10, | ||
icon = '', | ||
label = 'Recent Files', | ||
}, | ||
footer = { | ||
"", | ||
os.date("%H:%M") .. " " .. ({ "π", "π", "π", "π", "π", "π", "π", "π" })[tonumber(os.date("%d")) % 8 + 1] .. " " .. os.date("%d %b, %a"), | ||
"", "σ° " .. io.popen("whoami"):read("*l") .. "@" .. io.popen("hostname"):read("*l") | ||
.. " σ°ͺ " .. io.popen('uptime -p'):read("*l"), | ||
} | ||
}, | ||
hide = { | ||
statusline = true, -- Set to true to hide statusline in dashboard | ||
tabline = true, -- Set to true to hide tabline in dashboard | ||
winbar = true -- Set to true to hide winbar in dashboard | ||
}, | ||
disable_move = false, -- Set to true to disable cursor movement in dashboard | ||
shortcut_type = 'letter', -- 'letter' for a-z shortcuts, 'number' for numeric shortcuts | ||
change_to_vcs_root = true -- Change to project root when opening files from MRU | ||
} | ||
end, | ||
dependencies = { | ||
{ 'nvim-tree/nvim-web-devicons' }, | ||
{ 'nvim-telescope/telescope.nvim' } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
return { 'wakatime/vim-wakatime', lazy = false } |