config
This commit is contained in:
parent
873bf0f315
commit
f17a523cb1
4 changed files with 16 additions and 32 deletions
1
.config/fish/.gitignore
vendored
Normal file
1
.config/fish/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
env.fish
|
||||||
|
|
@ -1,13 +1,5 @@
|
||||||
set fish_greeting
|
set fish_greeting
|
||||||
|
|
||||||
if status is-interactive
|
|
||||||
end
|
|
||||||
|
|
||||||
set -Ux CODESTRAL_API_KEY "ZWftIpfTx8WRIryPLEAsxgvdSq5qFQzM"
|
|
||||||
set -Ux GEMINI_API_KEY "AIzaSyDLj_88cpI9Lcn1cWt15ATbYmuZPH1ADZw"
|
|
||||||
set -Ux ANTHROPIC_API_KEY "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"
|
|
||||||
|
|
||||||
|
|
||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
|
|
||||||
fx --comp fish | source
|
fx --comp fish | source
|
||||||
|
|
@ -16,9 +8,11 @@ zoxide init fish | source
|
||||||
|
|
||||||
fzf --fish | source
|
fzf --fish | source
|
||||||
|
|
||||||
|
|
||||||
# bun
|
# bun
|
||||||
set --export BUN_INSTALL "$HOME/.bun"
|
set --export BUN_INSTALL "$HOME/.bun"
|
||||||
set --export PATH $BUN_INSTALL/bin $PATH
|
set --export PATH $BUN_INSTALL/bin $PATH
|
||||||
|
|
||||||
|
# scripts
|
||||||
set --export PATH ~/.scripts/ $PATH
|
set --export PATH ~/.scripts/ $PATH
|
||||||
|
|
||||||
|
source ~/.config/fish/env.fish
|
||||||
|
|
|
||||||
|
|
@ -46,14 +46,6 @@ return {
|
||||||
require("aerial").snacks_picker({
|
require("aerial").snacks_picker({
|
||||||
layout = {
|
layout = {
|
||||||
cycle = true,
|
cycle = true,
|
||||||
width = 1,
|
|
||||||
min_width = 1,
|
|
||||||
min_height = 1,
|
|
||||||
height = 1,
|
|
||||||
--- Use the default layout or vertical if the window is too narrow
|
|
||||||
preset = function()
|
|
||||||
return vim.o.columns >= 120 and "default" or "vertical"
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ return {
|
||||||
},
|
},
|
||||||
image = { enabled = false },
|
image = { enabled = false },
|
||||||
picker = {
|
picker = {
|
||||||
|
layout = { fullscreen = true },
|
||||||
matcher = {
|
matcher = {
|
||||||
fuzzy = true, -- use fuzzy matching
|
fuzzy = true, -- use fuzzy matching
|
||||||
smartcase = true, -- use smartcase
|
smartcase = true, -- use smartcase
|
||||||
|
|
@ -44,14 +45,14 @@ return {
|
||||||
{
|
{
|
||||||
"<leader><space>",
|
"<leader><space>",
|
||||||
function()
|
function()
|
||||||
Snacks.picker.buffers()
|
Snacks.picker.buffers({ matcher = { frecency = true } })
|
||||||
end,
|
end,
|
||||||
desc = "Buffers",
|
desc = "Buffers",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>e",
|
"<leader>e",
|
||||||
function()
|
function()
|
||||||
Snacks.explorer()
|
Snacks.explorer({ layout = { fullscreen = false } })
|
||||||
end,
|
end,
|
||||||
desc = "File Explorer",
|
desc = "File Explorer",
|
||||||
},
|
},
|
||||||
|
|
@ -68,13 +69,14 @@ return {
|
||||||
"<leader>sf",
|
"<leader>sf",
|
||||||
function()
|
function()
|
||||||
Snacks.picker.files({
|
Snacks.picker.files({
|
||||||
layout = "vscode",
|
matcher = { frecency = true },
|
||||||
|
layout = { preset = "select" },
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
desc = "Find Files",
|
desc = "Find Files",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>sl",
|
"<leader>/",
|
||||||
function()
|
function()
|
||||||
Snacks.picker.lines()
|
Snacks.picker.lines()
|
||||||
end,
|
end,
|
||||||
|
|
@ -111,23 +113,18 @@ return {
|
||||||
{
|
{
|
||||||
"<leader>sd",
|
"<leader>sd",
|
||||||
function()
|
function()
|
||||||
Snacks.picker.diagnostics({
|
Snacks.picker.diagnostics_buffer({
|
||||||
layout = "bottom",
|
matcher = { smartcase = true },
|
||||||
matcher = {
|
|
||||||
fuzzy = true,
|
|
||||||
ignorecase = false,
|
|
||||||
smartcase = true,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
desc = "Diagnostics",
|
desc = "Buffer Diagnostics",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>sD",
|
"<leader>sD",
|
||||||
function()
|
function()
|
||||||
Snacks.picker.diagnostics_buffer()
|
Snacks.picker.diagnostics()
|
||||||
end,
|
end,
|
||||||
desc = "Buffer Diagnostics",
|
desc = "All Diagnostics",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>sh",
|
"<leader>sh",
|
||||||
|
|
@ -289,7 +286,7 @@ return {
|
||||||
{
|
{
|
||||||
"<leader>gg",
|
"<leader>gg",
|
||||||
function()
|
function()
|
||||||
Snacks.lazygit()
|
Snacks.lazygit({ win = { width = 0, height = 0 } })
|
||||||
end,
|
end,
|
||||||
desc = "Lazygit",
|
desc = "Lazygit",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue