irongit

using money for ascii

huncholanehuncholaneauthored
parent 3d522eccommit c4de7c5591437711fea5ec48329368972a89f08aBrowse files

8 files changed, +81 -42

+5-6nvim/lua/ftconfig/python.lua
@@ -1,10 +1,9 @@
1-local lspconfig = require("lspconfig")
2-vim.lsp.config
3-lspconfig.pyright.setup()
1+vim.lsp.config("pyright", {})
2+vim.lsp.setup("pyright")
43
54 ---@type FTSpec
65 return {
7- -- conform = {
8- -- use = { "black" },
9- -- },
6+ conform = {
7+ use = { "black" },
8+ },
109 }
+11-10nvim/lua/ftconfig/rust.lua
@@ -1,15 +1,16 @@
1+vim.lsp.config("rust_analyzer", {})
12 vim.lsp.enable("rust_analyzer")
23
34 ---@type FTSpec
45 return {
5- -- conform = {
6- -- use = { "rust-analyzer" },
7- -- formatters = {
8- -- cargo_fix = {
9- -- command = "cargo",
10- -- args = { "fix", "--allow-derty" },
11- -- stdin = false,
12- -- },
13- -- },
14- -- },
6+ conform = {
7+ use = { "rust-analyzer" },
8+ -- formatters = {
9+ -- cargo_fix = {
10+ -- command = "cargo",
11+ -- args = { "fix", "--allow-derty" },
12+ -- stdin = false,
13+ -- },
14+ -- },
15+ },
1516 }
+3-3nvim/lua/keymaps.lua
@@ -43,8 +43,8 @@ vim.keymap.set("n", "<leader>tf", builtin.find_files, { desc = "Find File" })
4343 vim.keymap.set("n", "<leader>tk", builtin.keymaps, { desc = "Find Keymap" })
4444 vim.keymap.set("n", "<leader>te", telescope.extensions.emoji.emoji, { desc = "Emoji" })
4545 vim.keymap.set("n", "<leader>ta", builtin.autocommands, { desc = "Autocommands" })
46-
47--- alt bindings
46+vim.keymap.set("n", "<leader>to", ":Telescope oil<cr>", { desc = "Oil" })
47+vim.keymap.set("n", "<leader>tn", ":Telescope nerdy<cr>", { desc = "Nerd Fonts" })
4848
4949 -- control bindings
5050 vim.keymap.set({ "i", "n" }, "<C-h>", "<C-w>h", { desc = "Window Left" })
@@ -58,4 +58,4 @@ vim.keymap.set("n", "<C-s>", ":w<cr>", { desc = "Save" })
5858 vim.keymap.set("i", "<C-s>", "<Esc>:w<cr>", { desc = "Save" })
5959
6060 -- cancel bindings
61-vim.keymap.set("n", "q:", ":", { desc = "Remove stupid ass command" })
61+-- vim.keymap.set("n", "q:", ":", { desc = "Remove stupid ass command" })
+21-21nvim/lua/plugins/dashboard.lua
@@ -1,25 +1,25 @@
11 vim.api.nvim_set_hl(0, "HygoOrange", { fg = "#ff8800", bold = true })
22
33 local asci = {
4- gigachad = {
5- "⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀",
6- "⠀⠀⠀⠀⠀⠀⣠⠞⠉⠀⠀⠀⠀⠀⠉⠳⣄⠀⠀⠀⠀⠀",
7- "⠀⠀⠀⠀⠀⣴⠋⠀⠀⢀⣀⣀⣀⣀⠀⠀⠈⢷⡀⠀⠀⠀",
8- "⠀⠀⠀⠀⢸⡇⠀⣴⠞⠋⠉⠉⠉⠉⠛⢦⠀⠈⡇⠀⠀⠀",
9- "⠀⠀⠀⠀⢸⡇⠀⡇⠀⠀⠀⠀⠀⠀⠀⢸⠀⠈⡇⠀⠀⠀",
10- "⠀⠀⠀⠀⠘⣇⠀⠙⠶⣄⠀⠀⣀⣤⠞⠋⠀⢰⠃⠀⠀⠀",
11- "⠀⠀⠀⠀⠀⠘⢷⣄⠀⠈⠉⠉⠁⠀⢀⣠⡾⠋⠀⠀⠀⠀",
12- "⠀⠀⠀⠀⠀⠀⠀⠈⠙⠲⠶⠶⠶⠚⠋⠁⠀⠀⠀⠀⠀⠀",
13- "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
14- "⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀",
15- },
16- hygo = {
17- " ██ ██ ██ ██ ██████ ██████ ",
18- " ██ ██ ██ ██ ██ ██ ██ ",
19- " ███████ ████ ██ ███ ██ ██ ",
20- " ██ ██ ██ ██ ██ ██ ██ ",
21- " ██ ██ ██ ██████ ██████ ",
22- },
4+ huncho_money = [[
5+ /$$ /$$ /$$ /$$ /$$ /$$ /$$$$$$ /$$ /$$ /$$$$$$
6+| $$ | $$| $$ | $$| $$$ | $$ /$$__ $$| $$ | $$ /$$__ $$
7+| $$ | $$| $$ | $$| $$$$| $$| $$ \__/| $$ | $$| $$ \ $$
8+| $$$$$$$$| $$ | $$| $$ $$ $$| $$ | $$$$$$$$| $$ | $$
9+| $$__ $$| $$ | $$| $$ $$$$| $$ | $$__ $$| $$ | $$
10+| $$ | $$| $$ | $$| $$\ $$$| $$ $$| $$ | $$| $$ | $$
11+| $$ | $$| $$$$$$/| $$ \ $$| $$$$$$/| $$ | $$| $$$$$$/
12+|__/ |__/ \______/ |__/ \__/ \______/ |__/ |__/ \______/
13+ ]],
14+ huncho_blur = [[
15+░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░ ░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░
16+░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░
17+░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░
18+░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░
19+░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░
20+░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░
21+░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░
22+ ]],
2323 }
2424 ---@type LazySpec
2525 return {
@@ -30,9 +30,9 @@ return {
3030 local alpha = require("alpha")
3131 local dashboard = require("alpha.themes.dashboard")
3232 local theta = require("alpha.themes.theta")
33- theta.header.val = asci.hygo
33+ theta.header.val = vim.split(asci.huncho_money, "\n")
3434 theta.header.opts.hl = "HygoOrange"
35- table.insert(theta.buttons.val, 3, dashboard.button("f", "🔭 Telescope", "<cmd>Telescope find_files<cr>"))
35+ table.insert(theta.buttons.val, 3, dashboard.button("f", " Telescope", "<cmd>Telescope find_files<cr>"))
3636 alpha.setup(theta.config)
3737 end,
3838 },
+1-1nvim/lua/plugins/ftconfig.lua
@@ -5,6 +5,6 @@ return {
55 "huncholane/ftconfig.nvim",
66 dir = vim.fn.isdirectory(dir) == 1 and dir or nil,
77 config = function()
8- require("ftconfig.init").setup()
8+ require("ftconfig").setup()
99 end,
1010 }
+1-0nvim/lua/plugins/telescope.lua
@@ -15,5 +15,6 @@ return {
1515 },
1616 },
1717 })
18+ telescope.load_extension("nerdy")
1819 end,
1920 }
+1-1nvim/lua/setup.lua
@@ -27,7 +27,7 @@ for _, file in ipairs(files) do
2727 table.insert(plugins, plugin)
2828 end
2929 end
30-require("lazy.init").setup({
30+require("lazy").setup({
3131 spec = plugins,
3232 })
3333
+38-0nvim/lua/telescope/_extensions/oil.lua
@@ -0,0 +1,38 @@
1+local pickers = require("telescope.pickers")
2+local finders = require("telescope.finders")
3+local conf = require("telescope.config").values
4+local actions = require("telescope.actions")
5+local action_state = require("telescope.actions.state")
6+
7+local function project_folders_picker(opts)
8+ opts = opts or {}
9+ local dirs = vim.fn.systemlist("fd -t d -H -E .git")
10+ if #dirs == 0 then
11+ vim.notify("No directories found", vim.log.levels.WARN)
12+ return
13+ end
14+
15+ pickers
16+ .new(opts, {
17+ prompt_title = "Project Folders",
18+ finder = finders.new_table(dirs),
19+ sorter = conf.generic_sorter(opts),
20+ attach_mappings = function(prompt_bufnr, map)
21+ actions.select_default:replace(function()
22+ actions.close(prompt_bufnr)
23+ local selection = action_state.get_selected_entry()
24+ if selection then
25+ vim.cmd("Oil " .. selection[1])
26+ end
27+ end)
28+ return true
29+ end,
30+ })
31+ :find()
32+end
33+
34+return require("telescope").register_extension({
35+ exports = {
36+ oil = project_folders_picker,
37+ },
38+})