actual progress omg

This commit is contained in:
voidarclabs
2025-10-19 16:42:42 +01:00
parent 85676d4153
commit 2574ea9578
8 changed files with 157 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
return {
"rmagatti/auto-session",
lazy = false,
opts = {
session_lens = {
picker = "telescope",
load_on_setup = true,
picker_opts = {
border = false,
},
},
suppressed_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
git_use_branch_name = true,
git_auto_restore_on_branch_change = true,
purge_after_minutes = 14400,
show_auto_restore_notif = true,
},
config = function()
require("auto-session").setup({})
vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
vim.keymap.set("n", "<leader>as", "<cmd>AutoSession search<CR>", { noremap = true })
vim.keymap.set("n", "<leader>an", "<cmd>AutoSession save<CR>", { noremap = true })
vim.keymap.set("n", "<leader>ad", "<cmd>AutoSession delete<CR>", { noremap = true })
end,
}

View File

@@ -3,8 +3,27 @@ return {
version = "",
config = function()
local animate = require("mini.animate")
require("mini.pairs").setup() -- Bracket pairs and stuff
require("mini.ai").setup() -- Around and In extension for visual mode
require("mini.cursorword").setup() -- Underline current word below cursor (makes it easier to c and d)
require("mini.indentscope").setup({
symbol = "",
draw = {
delay = 10,
animation = require("mini.indentscope").gen_animation.linear({
duration = 15,
unit = "step",
easing = "out",
}),
},
}) -- Indent lines
require("mini.trailspace").setup() -- Shows useless spaces
require("mini.sessions").setup({
autosread = true,
autowrite = true,
})
require("mini.notify").setup() -- Better Notifications
require("mini.surround").setup() -- Suround selections with characters
require("mini.move").setup({
mappings = {
@@ -14,5 +33,32 @@ return {
})
require("mini.icons").setup() -- Icon provider
require("mini.animate").setup({
cursor = {
enable = false,
},
scroll = {
-- Animate for 200 milliseconds with linear easing
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
-- Animate equally but with at most 120 steps instead of default 60
subscroll = animate.gen_subscroll.equal({ max_output_steps = 60 }),
},
open = {
-- Animate for 400 milliseconds with linear easing
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
-- Animate with wiping from nearest edge instead of default static one
winconfig = animate.gen_winconfig.wipe({ direction = "from_edge" }),
-- Make bigger windows more transparent
winblend = animate.gen_winblend.linear({ from = 80, to = 100 }),
},
close = {
-- Animate for 400 milliseconds with linear easing
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
-- Animate with wiping to nearest edge instead of default static one
winconfig = animate.gen_winconfig.wipe({ direction = "to_edge" }),
-- Make bigger windows more transparent
winblend = animate.gen_winblend.linear({ from = 100, to = 80 }),
},
})
end,
}

View File

@@ -0,0 +1,21 @@
return {
"nvim-telescope/telescope.nvim",
tag = "0.1.8",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
require("telescope").setup()
local builtin = require("telescope.builtin")
vim.keymap.set("n", "<leader>ff", function()
builtin.find_files({ cwd = vim.fn.expand("%:p:h"), hidden = true })
end, { desc = "Telescope find files (current file dir)" })
vim.keymap.set("n", "<leader>fg", function()
builtin.live_grep({ cwd = vim.fn.expand("%:p:h") })
end, { desc = "Telescope live grep (current file dir)" })
vim.keymap.set("n", "<leader>fb", function()
builtin.buffers({ cwd = vim.fn.expand("%:p:h") }) -- buffers dont need cwd, but harmless
end, { desc = "Telescope buffers" })
end,
}

View File

@@ -0,0 +1,7 @@
return {
"mbbill/undotree",
lazy = false,
config = function()
vim.keymap.set("n", "<leader>u", "<cmd>UndotreeToggle<cr><cmd>UndotreeFocus<cr>")
end,
}