Not for normies
using money for ascii
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") | |
| 4 | 3 | |
| 5 | 4 | ---@type FTSpec |
| 6 | 5 | return { |
| 7 | - -- conform = { | |
| 8 | - -- use = { "black" }, | |
| 9 | - -- }, | |
| 6 | + conform = { | |
| 7 | + use = { "black" }, | |
| 8 | + }, | |
| 10 | 9 | } |
+11-10nvim/lua/ftconfig/rust.lua
| @@ -1,15 +1,16 @@ | ||
| 1 | +vim.lsp.config("rust_analyzer", {}) | |
| 1 | 2 | vim.lsp.enable("rust_analyzer") |
| 2 | 3 | |
| 3 | 4 | ---@type FTSpec |
| 4 | 5 | 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 | + }, | |
| 15 | 16 | } |
+3-3nvim/lua/keymaps.lua
| @@ -43,8 +43,8 @@ vim.keymap.set("n", "<leader>tf", builtin.find_files, { desc = "Find File" }) | ||
| 43 | 43 | vim.keymap.set("n", "<leader>tk", builtin.keymaps, { desc = "Find Keymap" }) |
| 44 | 44 | vim.keymap.set("n", "<leader>te", telescope.extensions.emoji.emoji, { desc = "Emoji" }) |
| 45 | 45 | 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" }) | |
| 48 | 48 | |
| 49 | 49 | -- control bindings |
| 50 | 50 | 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" }) | ||
| 58 | 58 | vim.keymap.set("i", "<C-s>", "<Esc>:w<cr>", { desc = "Save" }) |
| 59 | 59 | |
| 60 | 60 | -- 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 @@ | ||
| 1 | 1 | vim.api.nvim_set_hl(0, "HygoOrange", { fg = "#ff8800", bold = true }) |
| 2 | 2 | |
| 3 | 3 | 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 | + ]], | |
| 23 | 23 | } |
| 24 | 24 | ---@type LazySpec |
| 25 | 25 | return { |
| @@ -30,9 +30,9 @@ return { | ||
| 30 | 30 | local alpha = require("alpha") |
| 31 | 31 | local dashboard = require("alpha.themes.dashboard") |
| 32 | 32 | local theta = require("alpha.themes.theta") |
| 33 | - theta.header.val = asci.hygo | |
| 33 | + theta.header.val = vim.split(asci.huncho_money, "\n") | |
| 34 | 34 | 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>")) | |
| 36 | 36 | alpha.setup(theta.config) |
| 37 | 37 | end, |
| 38 | 38 | }, |
+1-1nvim/lua/plugins/ftconfig.lua
| @@ -5,6 +5,6 @@ return { | ||
| 5 | 5 | "huncholane/ftconfig.nvim", |
| 6 | 6 | dir = vim.fn.isdirectory(dir) == 1 and dir or nil, |
| 7 | 7 | config = function() |
| 8 | - require("ftconfig.init").setup() | |
| 8 | + require("ftconfig").setup() | |
| 9 | 9 | end, |
| 10 | 10 | } |
+1-0nvim/lua/plugins/telescope.lua
| @@ -15,5 +15,6 @@ return { | ||
| 15 | 15 | }, |
| 16 | 16 | }, |
| 17 | 17 | }) |
| 18 | + telescope.load_extension("nerdy") | |
| 18 | 19 | end, |
| 19 | 20 | } |
+1-1nvim/lua/setup.lua
| @@ -27,7 +27,7 @@ for _, file in ipairs(files) do | ||
| 27 | 27 | table.insert(plugins, plugin) |
| 28 | 28 | end |
| 29 | 29 | end |
| 30 | -require("lazy.init").setup({ | |
| 30 | +require("lazy").setup({ | |
| 31 | 31 | spec = plugins, |
| 32 | 32 | }) |
| 33 | 33 |
+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 | +}) |