diff options
Diffstat (limited to '')
-rw-r--r-- | after/plugin/cleanfold.lua | 6 | ||||
-rw-r--r-- | after/plugin/foldsign.lua | 13 | ||||
-rw-r--r-- | after/plugin/killersheep.lua | 7 | ||||
-rw-r--r-- | after/plugin/lightbulb.lua | 23 | ||||
-rw-r--r-- | after/plugin/lsp.lua | 1 | ||||
-rw-r--r-- | after/plugin/marks.lua | 2 | ||||
-rw-r--r-- | after/plugin/neodev.lua | 6 | ||||
-rw-r--r-- | after/plugin/neorg.lua | 1 | ||||
-rw-r--r-- | after/plugin/scrollbar.lua | 8 | ||||
-rw-r--r-- | after/plugin/startpage.lua | 353 | ||||
-rw-r--r-- | after/plugin/statusline.lua | 1 | ||||
-rw-r--r-- | after/plugin/tabline.lua | 9 | ||||
-rw-r--r-- | after/plugin/todo-comments.lua | 6 |
13 files changed, 344 insertions, 92 deletions
diff --git a/after/plugin/cleanfold.lua b/after/plugin/cleanfold.lua new file mode 100644 index 0000000..3ae4183 --- /dev/null +++ b/after/plugin/cleanfold.lua @@ -0,0 +1,6 @@ +local status_ok, fold = pcall(require, "cleanfold") +if not status_ok then + return +end + +fold.setup {} diff --git a/after/plugin/foldsign.lua b/after/plugin/foldsign.lua new file mode 100644 index 0000000..1ca7d2c --- /dev/null +++ b/after/plugin/foldsign.lua @@ -0,0 +1,13 @@ +local status_ok, foldsign = pcall(require, "nvim-foldsign") +if not status_ok then + return +end + +foldsign.setup { + offset = -2, + foldsigns = { + open = 'V', + close = '>', + seps = { '│', '┃' }, + } +} diff --git a/after/plugin/killersheep.lua b/after/plugin/killersheep.lua index 8e3d899..b447010 100644 --- a/after/plugin/killersheep.lua +++ b/after/plugin/killersheep.lua @@ -1,4 +1,9 @@ -require("killersheep").setup { +local status_ok, killersheep = pcall(require, "killersheep") +if not status_ok then + return +end + +killersheep.setup { gore = true, border = 'shadow', keymaps = { diff --git a/after/plugin/lightbulb.lua b/after/plugin/lightbulb.lua deleted file mode 100644 index 00fcfcc..0000000 --- a/after/plugin/lightbulb.lua +++ /dev/null @@ -1,23 +0,0 @@ -local status_ok, lightbulb = pcall(require, "nvim-lightbulb") -if not status_ok then - return -end - -lightbulb.setup { - sign = { - enabled = true, - priority = 10000, -- make this really high so it always shows - }, - autocmd = { - enabled = true, - pattern = {"*"}, - events = {"CursorHold", "CursorHoldI"} - } -} - -vim.fn.sign_define('LightBulbSign', { - text = "f", - texthl = "LightBulbSignTxthl", - linehl="", - numhl="", -}) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 8d76750..11a77a9 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -35,7 +35,6 @@ set_lsp_sign("DiagnosticSignInfo" , "i") set_lsp_sign("DiagnosticSignHint" , "h") local function lsp_settings() - vim.diagnostic.config({ virtual_text = false, signs = true, diff --git a/after/plugin/marks.lua b/after/plugin/marks.lua index be51c58..eb04c77 100644 --- a/after/plugin/marks.lua +++ b/after/plugin/marks.lua @@ -5,5 +5,5 @@ end marks.setup { default_mappings = true, - builtin_marks = nil, + builtin_marks = false, } diff --git a/after/plugin/neodev.lua b/after/plugin/neodev.lua new file mode 100644 index 0000000..ec52684 --- /dev/null +++ b/after/plugin/neodev.lua @@ -0,0 +1,6 @@ +local status_ok, neodev = pcall(require, "neodev") +if not status_ok then + return +end + +neodev.setup {} diff --git a/after/plugin/neorg.lua b/after/plugin/neorg.lua index e130ecb..52adb3e 100644 --- a/after/plugin/neorg.lua +++ b/after/plugin/neorg.lua @@ -45,6 +45,7 @@ neorg.setup { zen_mode = "truezen", } }, + ["core.integrations.telescope"] = {}, } } diff --git a/after/plugin/scrollbar.lua b/after/plugin/scrollbar.lua index cc98537..5125f7c 100644 --- a/after/plugin/scrollbar.lua +++ b/after/plugin/scrollbar.lua @@ -23,3 +23,11 @@ scrollbar.setup({ handle = true, }, }) + +--[[ scrollbar.setup { + current_only = true, + winblend = 50, + zindex = 40, + excluded_filetypes = {}, + width = 2, +} ]] diff --git a/after/plugin/startpage.lua b/after/plugin/startpage.lua index 1cdc848..68c0aec 100644 --- a/after/plugin/startpage.lua +++ b/after/plugin/startpage.lua @@ -3,18 +3,18 @@ if not status_ok then return end -local redraw = alpha.redraw -local win = vim.api.nvim_get_current_win() -local buf = vim.api.nvim_get_current_buf() -local augroup = vim.api.nvim_create_augroup('alpha_recalc', { clear = true }) +math.randomseed(os.time()) + +local C = {} +local R = {} -- buttons local function button(sc, txt, keybind) local opts = { position = "center", shortcut = sc, - cursor = 5, - width = 80, + cursor = -1, + width = string.len(C.header[1]), align_shortcut = "right", hl_shortcut = "Keyword", redraw_on_resize = false, @@ -33,55 +33,304 @@ local function button(sc, txt, keybind) end -- actual config -local R = {} +C.bigheader = { + { + [[ |\ ]], + [[ ||. ]], + [[ ||;` ]], + [[ ,'|; : ]], + [[ ,': |; ` ]], + [[ ,' | ; `-` ]], + [[ ,' | ; : ]], + [[ ,' `-|; ` ]], + [[ ; ; ` ]], + [[ ,' `--\`-. `--: ]], + [[ ,-._,'`. |\||`-. ` ]], + [[ `;-.`-._`. | |\ \ `-. ` ]], + [[ :`--`-.`-\ `--.| /`\;\ `-: ]], + [[ ; ``-`. |/ ; \ `. ]], + [[ ; `.`-/ ; \ ` ]], + [[ ; : `/ ; \ ` ]], + [[ ,-._ | / ; -`\ : ]], + [[ `;-.`-._| : / | \ ` ]], + [[ ; `-.| : / | \ ` ]], + [[ ; | : : / | \ : ]], + [[ ; | : / ; | \ ` ]], + [[ ; | / ; | --`\ ` ]], + [[ | | : / ; | \ : ]], + [[ | : | : / ; \ ` ]], + [[ | : ; ;:'-.._ -`\ ` ]], + [[ | : ;___ ;'---....___;__:__| `-._ \ : ]], + [[ | : `;``-------'';|| : \ `-._ \` ]], + [[ -=======:===;===========;=|| : \ `-.\: ]], + [[ ___ ; _;_|| ; ||___,:-.\___,....__\_ ]], + [[ |`--:.|;_o||-______;,..-----""""" __|__...-'' ]], + [[----....|___ """" jrei__||-------........________]], + [[ """"----....____ __..--'' || ~~~~~ ]], + [[ ~~~ ~~~ """"----....____|/ ~~~~~~~ ~~~~~~~]], + [[~~~ ~~~~ ~~~~~~ ~ ~~~ ~~~~ ]], + [[ ~~~~~ ~~~ ~ ~~~~~~~~~ ~~~ ~~~~~~~~~~ ]], + }, + { + [[ J\ ]], + [[ | \ ]], + [[ | `. ]], + [[ F `. ]], + [[ F \ ]], + [[ F \ ]], + [[ J `. ]], + [[ J `. _ ]], + [[ J \ |\ ]], + [[ |. `.J|\ ]], + [[ | `. `.L \ ]], + [[ | `. \L `. ]], + [[ J ` F `. ]], + [[ J F \ ]], + [[ J J \ ]], + [[ F | \ ]], + [[ F | `. ]], + [[ F F `. ]], + [[ | F \ ]], + [[ | J \ ]], + [[ | | \ ]], + [[ | | \ ]], + [[ J F \ ]], + [[----------J J \-------------]], + [[ L | \ ]], + [[~ O ======F \ ~ ]], + [[ ~ (\`-. / J \-. ~ ]], + [[ \_\/ )"L_ _\_) ]], + [[ >|`-.||[_][""""---------.'_.-\\ ~ ]], + [[~~ ~~~ \`-. J_ Veronica"""""\/"_.--'\\ ]], + [[ ~ `. "--._ _..--""" |\` ]], + [[ ~~ ~~ ~""-. """"""""""" | ]], + [[ ~~ ~ ~~ ~"----._--.-._--""""\|'\| ]], + [[ ~ ~~~ ~~ ~~~ ~~~~ `- `--.` ` ]], + [[~~~ ~~ ~~ ~~~~ ~~ ~ ]], + }, + { + [[ . . ]], + [[ _..-''"""\ _.--'"""\ ]], + [[ | L | \ ]], + [[ _ / _.-.---.\. / .-.----.\ ]], + [[ _/-|--- _/<"---'"""""\\`. /-'--''"""""\ ]], + [[ | \ | L`.`-. | L ]], + [[ /_.-.---.L | \ \ `| J`. ]], + [[ _/--'"""" \ F \L \ | L ]], + [[ L `. L J _.---.-"""-.\`. L_/ _.--|"""""--.\ `. ]], + [[ | \+. /-"__.--'"""" \ `./'"---'"""""" \`. `. ]], + [[ F _____ \ `F" `. \ \ L `. ]], + [[ /.-'"_|---'"\ | ` JL | L `.`. ]], + [[ <-'"" \| _.-.------._ A J _.-.-----`.--| ``.`. ]], + [[ L `. |/.-'"_.-`---'""\."| /-'"---'""""" \`.\. \ `.`. ]], + [[ | _.------\.<'""" L\ L\ `.`\`. \ `. ]], + [[ _.-'//'"--'""" L\| ________\ `.F ___.-------._L \ `-\ \`. ]], + [[ /___| F F _.--'"_|-------L /_.-'"_.-|-'"""""""\ L L `.`. ]], + [[ | F _.-'|"""""/'"-'""" J <'""" L J | `.`. ]], + [[ |/-'-''/|""\ )-|\ F \ | L .'"""`\""-\\_ ]], + [[ F`-'-'-(`-') | \ F \ |___`"""`.""`.-'" ]], + [[------------/ `-'---| F L L __ |"""""`-'"__________]], + [[ .'_ | |__L __ J__ | _.--'"""" `".----'".' ]], + [[ '""""""""""""|--._+--F _.-'""||" """___/.-'" ||-'"/""""" \_. .' ]], + [[ J------------(___\__/'_____.--------'-------'"""""""" / ]], + [[ `-. _.__.__.__.____ J_.-._ ]], + [[ .'`-._ (-`--`---.'--._`---._.-'`-._.-'_.-'``-._' `-''-' ]], + }, + { + [[ _____|\ ]], + [[ _.--| SSt |: ]], + [[ <____|.----|| ]], + [[ .---''---, ]], + [[ ;..__..' _... ]], + [[ ,'/ ;|/..--'' \ ]], + [[ ,'_/.-/': : ]], + [[ _..-'''/ / | \ \ _|/| ]], + [[ \ /-./_ \; \ \,;' \ ]], + [[ ,\ / \: `:\ \ // `:`. ]], + [[ ,' \ /-._; | : : :: ,. . ]], + [[ ,' :: /`-._| | | || ' : `.`.)]], + [[ _,' |;._:: | | | | `| : `' ]], + [[ ,' `. / |`-:_ ; | | | : \ ]], + [[ `--. ) /|-._: : | \ \ ]], + [[ / / :_| ;`-._; __..--'; : : ]], + [[ / ( ;|;-./_ _/.-:'o | / ' | ]], + [[ / , \._/_/_./--''/_|:|___|_,' | ]], + [[ : / `'-'--'----'---------' | ]], + [[ | : O ._O O_. O ._O O_. ; ; ]], + [[ : `. // // // // ,' / ]], + [[ ~~~`.______//____//____//____//_______,'~ ]], + [[ // //~ // // ]], + [[ ~~ _// _// _// ~ _// ~ ]], + [[ ~ / / / / / / / / ~ ~~ ]], + [[ ~~~ ~~~ ~~~ ~~~ ]], + }, + { + [[ P___----.... ]], + [[ ! __ ]], + [[ ' ~~ ---.#..__ ` ~ ~ - - . .: ]], + [[ ` ~~--. .F~~___-__. ]], + [[ ; , .- . _! ]], + [[ , ' ; ~ . ]], + [[ , ____ ; ' _ ._ ; ]], + [[ ,_ . - '___#, ~~~ ---. _, . ' .#' ~ .; ]], + [[ =---==~~~ ~~~==--__ ; '~ -. ,#_ .' ]], + [[ ' `~=.; ` / ]], + [[ ' ' '. ]], + [[ ' ' ]], + [[ \ ' ' ' ]], + [[ `.`\ ' . ; , ]], + [[ \ ` ' ' ; ]], + [[ ; ' ' ' ]], + [[ /_ ., / __...---./ ' ]], + [[ ',_, __.--- ~~;#~ --..__ _'.-~;# // `.' ]], + [[ / / ~~ .' . #; ~~ /// #; // / ]], + [[ / ' . __ . ' ;#;_ . ////.;#;./ ; / ]], + [[ \ . / ,##' / _ /. '(/ ~||~\' ]], + [[ \ ` - . /_ . -==- ~ ' / (/ ' . ;;. ', ]], + [[ /' . ' -^^^...--- ``(/' _ ' '' `,; ]], + [[##,. .#...( ' .c c .c c c. '.. ;; ../ ]], + [[%%#%;,..##.\_ ,;###;,. ;;.:##;,. raf ]], + [[%%%%########%%%%;,.....,;%%%%%%;,.....,;%%%%%%%%%%%%%%%%%%%%............]], + }, + { + [[ .. ]], + [[ .( )`-._ ]], + [[ .' || `._ ]], + [[ .' || `. ]], + [[ .' || `._ ]], + [[ .' _||_ `-. ]], + [[ .' |====| `.. ]], + [[ .' \__/ ( ) ]], + [[ ( ) || _ || ]], + [[ /|\ || .-` \ || ]], + [[ .' | ' || _.-' | || ]], + [[ / |\ \ || .' `.__.' || _.-.. ]], + [[ .' /| `. _.-' _.-' _.-.`-'`._`.` ]], + [[ \ .' | | .-.` `./ _.-`. `._.-' ]], + [[ |. | `. _.-' `. .' .' `._.`---` ]], + [[ .' | | : `._..-'.' `._..' || ]], + [[ / | \ `-._.' || || ]], + [[ | .'|`. | ||_.--.-._ || ]], + [[ ' / | \ \ __.--'\ `. : || ]], + [[ \ .' | \| ..-' \ `._-._.' || ]], + [[`.._ |/ | `. \ \ `._.- || ]], + [[ `-.._ / | \ `-.'_.--' || ]], + [[ `-.._.' | | | | _ _ _ _'_ _ _ _ _ ]], + [[ `-.._ | \ | | |_|_|_'|_|_|_|_|_|_| ]], + [[ [`--^-..._.' | | /....../| __ __ | ]], + [[ \`---.._|`--.._ | | /....../ | |__| |__| | ]], + [[ \__ _ `-.._| `-._|_|_ _ _/_ _ _ / | |__| |__| | ]], + [[ \ _o_ _`-._|_|_|_|_|_|_|_|_/ '-----------/ ]], + [[ \_`.|.' _ - .--.--.--.--.--.`--------------' ]], + [[ .```-._ ``-.._ \__ _ _ '--'--'--'--'--' - _ - _ __/ ]], + [[ .`-.```-._ ``-..__``.- `. _ - _ _ _ - _- _ __/(.``-._]], + [[ _.-` ``--.. .. _.-` ``--.. .. .._ _. __ __ _ __ ..--.._ / .( _..``]], + [[`.-._ `._ `- `-._ .`-.```-._ ``-..__``.- -._--.__---._--..-._`...```]], + [[ _.-` ``--.. .. `.-._ `._ `- `-._ .-_. ._.- -._ --.._`` _.-`LGB`-.]], + }, +} +C.mediumheader = { + { + [[ |._ ]], + [[ |._( ]], + [[ <|.__..-'|. ]], + [[ ,| .|)\ ]], + [[ /| .|) \ ]], + [[ /.|) .|) \ ]], + [[ / .|) .|) \ ]], + [[ / .|) .|) \ ]], + [[ / .|) .|) \ ]], + [[ / ,--+---_ | \ , ]], + [[ '\==-,,;,,;,,;,,,,,,,-==;7 ]], + [[ _ \__...____...__ __/ _ seal _]], + [[ ~ ~~~~ ~~ ]], + }, + { + [[ , ]], + [[ |"-,_ ]], + [[ I--(_ ]], + [[ ,I?8, ]], + [[ d|`888. ]], + [[ d8| 8888b ]], + [[ ,88| ?8888b ]], + [[ ,888| `88888b ]], + [[ ,8888| 8888g8b ]], + [[ ,88888| 888PX?8b ]], + [[ ,888888| 8888bd88, ]], + [[ o8888888| ,888888888 ]], + [[ d8888888P| d888888888b ]], + [[ _.d888gggg8'| 8gg88888888, ]], + [[ '\==-,,,,,,,,|/;,,,,,-==;7 ]], + [[ _ \__...____...__ __/ _ seal _]], + [[ ~ ~~~~ ~~ ]], + }, +} +C.smallheader = { + { + [[ _~ ]], + [[ _~ )_)_~ ]], + [[ )_))_))_) ]], + [[ _!__!__!_ ]], + [[ \______t/ ]], + [[~~~~~~~~~~~~~]], + }, + { + [[ __4___ ]], + [[ _ \ \ \ \ ]], + [[<'\ /_/_/_/ ]], + [[ ((____!___/)]], + [[ \0\0\0\0\/ ]], + }, + { + [[ I\ ]], + [[ I \ ]], + [[ I \ ]], + [[ I*--\ ]], + [[ I \ ]], + [[ I \ ]], + [[ I______\ ]], + [[ _____I__O______ ]], + [[ \ ( ) b ^ ^]], + [[^^^^^^^^^^^^^^^^^ ^ ]], + }, + { + [[ ^ +~+~~ ]], + [[ ^ )`.). ]], + [[ )``)``) .~~ ]], + [[ ).-'.-')|) ]], + [[ |-).-).-'_'-/ ]], + [[~~~\ `o-o-o' /~~~~~~~~~~~~~~~~~]], + [[ ~~~'---.____/~~Eric C. Liebl~~~]], + }, + { + [[ ,_ ]], + [[ I~ ]], + [[ |\ ]], + [[ /|.\ ]], + [[ / || \ ]], + [[ ,' |' \ ]], + [[.-'.-==|/_--' ]], + [[`--'-------' _ seal _]], + } +} R.width = vim.api.nvim_win_get_width(0) R.height = vim.api.nvim_win_get_height(0) -if R.width >= 120 then - alpha.setup { - layout = { - { type = "padding", val = math.floor(R.height / 2.5) }, - button([[ `'::. `'::::. ]], "Recent Files", "<cmd>Telescope oldfiles<CR>"), - button([[ _________H ,%%&%, _____A_ ]], "New File", "<cmd>ene<CR>"), - button([[ /\ _ \%&&%%&% / /\ ]], "Update Plugins", "<cmd>DepSync<CR>"), - button([[ / \___/^\___\%&%%&& __/__/\__/ \___ ]], "", ""), - button([[ | | [] [] |%\Y&%' /__|" '' "| /___/\ ]], "", ""), - button([[ | | .-. | || |''|"'||'"| |' '|| ]], "", ""), - button([[~~@._|@@_|||_@@|~||~~~ ~`""`""))""`"`""""`~~]], "", ""), - button([[ `""") )"""` // ]], "", ""), - } - } -end -if R.width <= 119 then - local header = { - [[ `'::. `'::::. ]], - [[ _________H ,%%&%, _____A_ ]], - [[ /\ _ \%&&%%&% / /\ ]], - [[ / \___/^\___\%&%%&& __/__/\__/ \___ ]], - [[ | | [] [] |%\Y&%' /__|" '' "| /___/\ ]], - [[ | | .-. | || |''|"'||'"| |' '|| ]], - [[~~@._|@@_|||_@@|~||~~~ ~`""`""))""`"`""""`~~]], - [[ `""") )"""` // ]], - } - alpha.setup { - layout = { - { type = "padding", val = math.floor(R.height / 2.5) }, - { type = "text", val = header, opts = { position = "center", hl = "AlphaHeader" } }, - { type = "padding", val = 1 }, - button([[]], "Recent Files", "<cmd>Telescope oldfiles<CR>"), - button([[]], "New File", "<cmd>ene<CR>"), - button([[]], "Update Plugins", "<cmd>DepSync<CR>"), - } - } -end - -vim.api.nvim_create_autocmd('VimResized', { - group = augroup, - buffer = buf, - callback = function() - if vim.api.nvim_get_current_win() == win then - redraw() +C.header = C.bigheader[math.random(#C.bigheader)] +if #C.header >= R.height then + C.header = C.mediumheader[math.random(#C.mediumheader)] + if #C.header >= R.height then + C.header = C.smallheader[math.random(#C.smallheader)] + if #C.header >= R.height then + C.header = "" end end -}) +end + +alpha.setup { + layout = { + { type = "padding", val = math.floor((R.height - #C.header) / 2) }, + { type = "text", val = C.header, opts = { position = 'center', hl = "AlphaHeader" } }, + }, +} diff --git a/after/plugin/statusline.lua b/after/plugin/statusline.lua index a36dd9e..1da1163 100644 --- a/after/plugin/statusline.lua +++ b/after/plugin/statusline.lua @@ -92,7 +92,6 @@ local modes = { el.setup { generator = function() - local items = { { c.mode { modes = modes, fmt = " %s %s ", icon = "", hl_icon_only = false } }, { sections.split, required = true }, diff --git a/after/plugin/tabline.lua b/after/plugin/tabline.lua deleted file mode 100644 index 7ec5cf1..0000000 --- a/after/plugin/tabline.lua +++ /dev/null @@ -1,9 +0,0 @@ -local status_ok, luatab = pcall(require, "luatab") -if not status_ok then - return -end - -luatab.setup { - windowCount = function() return '' end, - devicon = function() return '' end, -} diff --git a/after/plugin/todo-comments.lua b/after/plugin/todo-comments.lua index af67d49..2a65cda 100644 --- a/after/plugin/todo-comments.lua +++ b/after/plugin/todo-comments.lua @@ -5,10 +5,8 @@ end todocomments.setup { keywords = { - FIX = { - icon = " ", -- icon used for the sign, and in search results - }, - TODO = { icon = " ", color = "info" }, + FIX = { icon = " ", alt = { "FIXME", "BUG" } }, + TODO = { icon = "i ", color = "info" }, HACK = { icon = "* ", color = "warning" }, WARN = { icon = "! ", color = "warning", alt = { "WARNING", "XXX" } }, PERF = { icon = " ", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } }, |