1
1
Fork 0

Compare commits

..

No commits in common. "094b62278c976a6eec2b13ac3b7cf3724b315315" and "b6f3df8ab10e0a45f627544ffa5a5472a0b79981" have entirely different histories.

4 changed files with 63 additions and 64 deletions

BIN
README.md

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 615 B

View file

@ -5,27 +5,27 @@ return {
config = function() config = function()
local startify = require("alpha.themes.startify") local startify = require("alpha.themes.startify")
local dashboard = require("alpha.themes.dashboard") local dashboard = require("alpha.themes.dashboard")
local logo = [[
dashboard.section.header.val = {
"",
"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⣠⣴⣿⣽⣷⣿⣿⣿⣿⣾⣷⣦⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀",
"⠀⠀⠀⣠⣤⠀⠀⠀⠀⠀⣀⣸⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣾⣝⢄⠀⠀⠀⠀⠀⠀⠀⠀",
"⠀⠀⣰⣿⣾⡀⢀⡠⣪⣽⣿⣯⡿⡾⣏⡻⡿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⢣⠀⠀⠀⠀⠀⠀⠀",
"⠀⢰⣿⣿⣿⣯⣷⣿⣿⣿⣿⣿⡿⣻⣷⡿⣫⠤⢄⡹⡿⣽⣏⢹⠅⠻⡟⣹⡤⣀⠀⠀⠀⠀⠀",
"⠀⠸⣹⣿⣿⣿⣿⣿⣿⣿⡟⠞⣾⣿⡟⢱⡏⠃⢀⢳⢹⣷⣿⣮⣵⣞⣻⣿⣿⣿⣷⡀⠀⠀⠀",
"⠀⠀⠈⠫⠿⣛⣻⣏⢪⣾⣿⣿⠯⣻⣿⣦⠻⠦⢬⣛⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡱⠀⠀⠀",
"⠀⠀⠀⢠⣞⣺⣽⡏⣯⣿⣿⣯⣿⣿⣿⣿⣿⣾⣾⣿⣿⣿⣿⣿⣿⣿⢿⣿⠿⠋⢁⢇⠀⠀⠀",
"⠀⠀⠀⢇⣾⢿⣿⣷⣟⣿⣿⠑⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⣿⣷⣿⣿⣿⡻⣷⣷⢿⣳⣕⡄⠀",
"⠀⠀⢠⣗⣟⢷⣽⡛⢿⣿⣿⣆⠁⠻⣿⣿⣿⣿⣿⣿⣿⣿⡿⣿⣻⣯⣿⣿⣹⣿⣹⣻⣿⡞⡄",
"⠀⠀⠀⢠⣿⣿⣏⣨⣾⣿⣿⢯⣿⣠⣌⠛⠿⠿⣿⣿⣿⣿⠘⠛⢻⣯⣍⢽⣿⣷⣷⣿⣿⣿⡇",
"⠀⠀⢀⣸⣿⣩⣿⣿⣽⢿⣿⣿⣿⣸⣿⣇⣐⠓⠚⠛⠋⣁⣤⠆⢀⡻⣿⣾⣴⣻⣟⡿⣿⡧⡇",
YIP YAP YAP YAP YIP YIP YAP "⠀⠀⠈⠾⣻⣿⡾⣿⣿⣿⣾⣙⡿⣛⣂⠈⠱⢿⣿⣿⡿⣿⣿⣟⣿⣻⣿⣿⡫⢬⣿⣧⣿⣷⡱",
]] "⠀⠀⠀⠀⢈⣞⡽⣫⣧⣾⣷⣶⣸⣿⣿⣿⣦⡀⠀⠩⣾⣿⣿⣿⣿⣿⣮⣿⣿⡾⣿⣽⣷⡗⠁",
-- ⠀⠀⢀⢮⣟⣾⣿⣿⣻⣿⡷⣻⣿⠿⣿⣿⣿⣤⣀⠹⣿⣿⣿⣿⣿⣿⣿⠏⠁⡧⠗⠁⠀⠀ -- "⠀⠀⢀⢮⣟⣾⣿⣿⣻⣿⡷⣻⣿⠿⣿⣿⣿⣤⣀⠹⣿⣿⣿⣿⣿⣿⣿⠏⠁⡧⠗⠁⠀⠀",
-- ⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣟⣾⡿⣶⣿⣿⣿⣿⣿⣿⣦⡘⠿⠿⠿⣿⡟⠀⢰⠁⠀⠀ -- "⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣟⣾⡿⣶⣿⣿⣿⣿⣿⣿⣦⡘⠿⠿⠿⣿⡟⠀⢰⠁⠀⠀",
dashboard.section.header.val = vim.split(logo, "\n") " YIP YAP YAP YAP YIP YIP YAP",
dashboard.section.header.opts.hl = "@tag" }
local quotes = { local quotes = {
{ "Sorting moss by taste..." }, { "Sorting moss by taste..." },
{ "There is no Kobold OSHA..." }, { "There is no Kobold OSHA..." },

View file

@ -1,43 +1,42 @@
return {} local handler = function(virtText, lnum, endLnum, width, truncate)
-- local handler = function(virtText, lnum, endLnum, width, truncate) local newVirtText = {}
-- local newVirtText = {} local suffix = (' 󰁂 %d '):format(endLnum - lnum)
-- local suffix = (' 󰁂 %d '):format(endLnum - lnum) local sufWidth = vim.fn.strdisplaywidth(suffix)
-- local sufWidth = vim.fn.strdisplaywidth(suffix) local targetWidth = width - sufWidth
-- local targetWidth = width - sufWidth local curWidth = 0
-- local curWidth = 0 for _, chunk in ipairs(virtText) do
-- for _, chunk in ipairs(virtText) do local chunkText = chunk[1]
-- local chunkText = chunk[1] local chunkWidth = vim.fn.strdisplaywidth(chunkText)
-- local chunkWidth = vim.fn.strdisplaywidth(chunkText) if targetWidth > curWidth + chunkWidth then
-- if targetWidth > curWidth + chunkWidth then table.insert(newVirtText, chunk)
-- table.insert(newVirtText, chunk) else
-- else chunkText = truncate(chunkText, targetWidth - curWidth)
-- chunkText = truncate(chunkText, targetWidth - curWidth) local hlGroup = chunk[2]
-- local hlGroup = chunk[2] table.insert(newVirtText, { chunkText, hlGroup })
-- table.insert(newVirtText, { chunkText, hlGroup }) chunkWidth = vim.fn.strdisplaywidth(chunkText)
-- chunkWidth = vim.fn.strdisplaywidth(chunkText) -- str width returned from truncate() may less than 2nd argument, need padding
-- -- str width returned from truncate() may less than 2nd argument, need padding if curWidth + chunkWidth < targetWidth then
-- if curWidth + chunkWidth < targetWidth then suffix = suffix .. (' '):rep(targetWidth - curWidth - chunkWidth)
-- suffix = suffix .. (' '):rep(targetWidth - curWidth - chunkWidth) end
-- end break
-- break end
-- end curWidth = curWidth + chunkWidth
-- curWidth = curWidth + chunkWidth end
-- end table.insert(newVirtText, { suffix, 'MoreMsg' })
-- table.insert(newVirtText, { suffix, 'MoreMsg' }) return newVirtText
-- return newVirtText end
-- end
-- return {
-- return { "kevinhwang91/nvim-ufo",
-- "kevinhwang91/nvim-ufo", dependencies = {
-- dependencies = { "kevinhwang91/promise-async",
-- "kevinhwang91/promise-async", },
-- }, config = function()
-- config = function() require('ufo').setup({
-- require('ufo').setup({ fold_virt_text_handler = handler,
-- fold_virt_text_handler = handler, provider_selector = function(_bufnr, _filetype, _buftype)
-- provider_selector = function(_bufnr, _filetype, _buftype) return { 'treesitter', 'indent' }
-- return { 'treesitter', 'indent' } end
-- end })
-- }) end,
-- end, }
-- }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB