Merge branch 'main' of github.com:ficcdaf/dotfiles

merging changes because autoyadm.sh was broken on dbox lol
This commit is contained in:
Daniel Fichtinger 2024-11-09 23:10:49 -05:00
commit 8d2e4bf382
12 changed files with 61 additions and 215 deletions

View file

@ -1,5 +1,6 @@
return {
"echasnovski/mini.files",
lazy = false,
keys = {
{
"<leader>e",
@ -9,14 +10,14 @@ return {
desc = "Open mini.files (current file directory)",
},
{
"<leader>E",
"<leader>fm",
function()
require("mini.files").open(vim.uv.cwd(), true)
end,
desc = "Open mini.files (cwd)",
},
{
"<leader>fm",
"<leader>E",
function()
require("mini.files").open(LazyVim.root(), true)
end,
@ -24,10 +25,21 @@ return {
},
},
opts = {
content = {
-- hide hidden files by default
filter = function(fs_entry)
return not vim.startswith(fs_entry.name, ".")
end,
},
mappings = {
go_in_plus = "<CR>",
synchronize = ":w",
-- go_out = "<BS>",
-- reset = "-",
},
options = {
permanent_delete = false,
use_as_default_explorer = true,
},
},
}

View file

@ -1,17 +1,37 @@
local function mapPrefix(prefix, enabled)
-- create the WK group for the prefix
require("which-key").add({
{ prefix, group = "+NoNeckPain" },
})
-- define the suffix mappings
local mappings = {
toggle = "p",
toggleLeftSide = "ql",
toggleRightSide = "qr",
widthUp = "=",
widthDown = "-",
scratchPad = "s",
}
-- concat prefix and suffix
for action, suffix in pairs(mappings) do
mappings[action] = prefix .. suffix
end
-- include the enabled flag
mappings.enabled = enabled
return mappings
end
-- Ok, this plugin is really awesome!
-- And everyone should know about it -- game changer!!!
return {
"shortcuts/no-neck-pain.nvim",
version = "*",
opts = function()
require("which-key").add({
{ "<leader>n", group = "+NoNeckPain" },
})
return {
width = 120,
mappings = {
enabled = true,
},
mappings = mapPrefix("<leader>N", true),
-- mappings = {
-- enabled = true,
-- },
autocmds = {
enableOnVimEnter = true,
skipEnteringNoNeckPainBuffer = true,

View file

@ -3,7 +3,7 @@ return {
---@module 'oil'
---@type oil.SetupOpts
opts = {
default_file_explorer = true,
default_file_explorer = false,
delete_to_trash = true,
columns = {
"icon",