Who knows...

This commit is contained in:
2026-06-11 09:11:50 +02:00
parent ae3fe68e2a
commit 24db65b6ed
3 changed files with 97 additions and 69 deletions
+35 -57
View File
@@ -1,8 +1,7 @@
[general] [general]
# import = [ "~/.config/alacritty/dank-theme.toml" ]
[font] [font]
size = 12.5 size = 13
offset = { x = 0, y = 3 } offset = { x = 0, y = 3 }
normal = { family = "JetBrainsMono Nerd Font", style = "Regular" } normal = { family = "JetBrainsMono Nerd Font", style = "Regular" }
@@ -15,63 +14,42 @@ decorations = "None"
style.shape = "Beam" style.shape = "Beam"
style.blinking = "Always" style.blinking = "Always"
# THEME
[colors.primary] [colors.primary]
background = "#181818" background = '#141415'
foreground = "#E4E4E4" foreground = '#cdcdcd'
[colors.cursor]
text = "#0e0e0e"
cursor = "#d4a943"
[colors.vi_mode_cursor]
text = "#0e0e0e"
cursor = "#ebcb8b"
[colors.selection]
text = "#dddddd"
background = "#47464c"
[colors.search.matches]
foreground = "#dddddd"
background = "#47464c"
[colors.search.focused_match]
foreground = "#131314"
background = "#b8943a"
[colors.footer_bar]
foreground = "#dddddd"
background = "#131314"
[colors.hints.start]
foreground = "#131314"
background = "#ebcb8b"
[colors.hints.end]
foreground = "#131314"
background = "#b8943a"
[colors.line_indicator]
foreground = "None"
background = "None"
[colors.normal] [colors.normal]
black = "#131314" black = '#252530'
red = "#b38f8f" red = '#d8647e'
green = "#a3be8c" green = '#7fa563'
yellow = "#ebcb8b" yellow = '#f3be7c'
blue = "#6c7a8a" blue = '#6e94b2'
magenta = "#b3a3d3" magenta = '#bb9dbd'
cyan = "#6ac6f2" cyan = '#aeaed1'
white = "#dddddd" white = '#cdcdcd'
[colors.bright] [colors.bright]
black = "#444444" black = '#606079'
red = "#d9a6a6" red = '#e08398'
green = "#a3be8c" green = '#99b782'
yellow = "#fbe4a8" yellow = '#f5cb96'
blue = "#8fa3b3" blue = '#8ba9c1'
magenta = "#d3a3d3" magenta = '#c9b1ca'
cyan = "#8ac6f2" cyan = '#bebeda'
white = "#ffffff" white = '#d7d7d7'
[colors.hints.start]
foreground = "CellBackground"
background = "CellForeground"
[colors.hints.end]
foreground = "CellBackground"
background = "CellForeground"
[colors.search.matches]
foreground = "CellBackground"
background = "CellForeground"
[colors.search.focused_match]
foreground = "CellBackground"
background = '#f3be7c'
+16 -2
View File
@@ -61,7 +61,7 @@ alias ls='ls -lh --color=auto --group-directories-first'
alias ll='ls -lAh --color=auto --group-directories-first' alias ll='ls -lAh --color=auto --group-directories-first'
alias la='ls -la --color=auto --group-directories-first' alias la='ls -la --color=auto --group-directories-first'
alias l='ls -CF --color=auto' alias l='ls -CF --color=auto'
alias tree='tree -C' alias tree='tree --dirsfirst -C'
# Safety aliases # Safety aliases
alias rm='rm -I --preserve-root' alias rm='rm -I --preserve-root'
@@ -87,12 +87,14 @@ alias ldk='lazydocker'
# Custom shortcuts # Custom shortcuts
alias reload='source ~/.config/fish/config.fish' alias reload='source ~/.config/fish/config.fish'
alias p='exec ~/.local/bin/project-select'
alias prj='cd ~/Projects/ && ll' alias prj='cd ~/Projects/ && ll'
alias dots='cd ~/.dotfiles' alias dots='cd ~/.dotfiles'
alias dotman='bash ~/.dotfiles/install.sh' alias dotman='bash ~/.dotfiles/install.sh'
alias todo='cd ~/Todo/ && nvim index.md' alias todo='cd ~/Todo/ && nvim index.md'
alias myip='curl ipinfo.io/ip; echo ""' alias myip='curl ipinfo.io/ip; echo ""'
alias lspmake='bear -- make -B' alias lspmake='bear -- make -B'
alias sub='subl . && exit'
alias tc='tmux attach' alias tc='tmux attach'
alias td='tmux detach' alias td='tmux detach'
alias db='lazysql' alias db='lazysql'
@@ -103,7 +105,19 @@ alias services-down='docker compose -f /home/jason/Documents/Compose/local-servi
## Basic project picker using mini sessions and neovim ## Basic project picker using mini sessions and neovim
function pp function pp
nvim -c "lua MiniSessions.select()" set project (
find ~/Projects -mindepth 1 -maxdepth 1 -type d |
awk -F/ '{print $NF "\t" $0}' |
fzf --with-nth=1
)
if test -z "$project"
return
end
set project (echo $project | cut -f2)
cd $project && /usr/local/nvim_012/bin/nvim $project
end end
# ============================================================================== # ==============================================================================
+46 -10
View File
@@ -1,9 +1,10 @@
require("vim._core.ui2").enable({}) require("vim._core.ui2").enable({})
map = vim.keymap.set map = vim.keymap.set
vim.g.mapleader = " "
vim.g.termguicolors = true vim.g.termguicolors = true
vim.g.netrw_keepdir = 1
-- mini.basics sets defaults see plugin folder for more vim.g.netrw_winsize = 30
vim.g.netrw_browse_split = 4
vim.o.nu = true
vim.o.swapfile = false vim.o.swapfile = false
vim.o.winborder = "single" vim.o.winborder = "single"
vim.o.winblend = 0 vim.o.winblend = 0
@@ -17,13 +18,15 @@ vim.o.clipboard = "unnamedplus"
vim.o.foldmethod = "expr" vim.o.foldmethod = "expr"
vim.o.foldlevel = 99 vim.o.foldlevel = 99
vim.o.completeopt = "menuone,noselect,fuzzy,nosort" vim.o.completeopt = "menuone,noselect,fuzzy,nosort"
vim.opt.listchars:append("tab:> ")
vim.opt.shortmess:append("c") vim.opt.shortmess:append("c")
vim.o.list = true
vim.o.undofile = true
vim.o.undodir = os.getenv("HOME") .. "/.cache/nvim/undodir" vim.o.undodir = os.getenv("HOME") .. "/.cache/nvim/undodir"
vim.cmd.colorscheme("retrobox") vim.cmd.colorscheme("retrobox")
vim.api.nvim_set_hl(0, "Normal", { bg = "#181818" }) vim.o.errorformat = "%f(%l:%c) %m,%-G%.%#"
vim.api.nvim_set_hl(0, "NormalNC", { bg = "#181818" })
-- -----------------------------
-- @BINDS -- @BINDS
-- ----------------------------- -- -----------------------------
map("t", "<ESC><ESC>", "<C-\\><C-n>") map("t", "<ESC><ESC>", "<C-\\><C-n>")
@@ -37,10 +40,45 @@ map("v", "J", ":m '>+1<CR>gv=gv")
map("v", "K", ":m '<-2<CR>gv=gv") map("v", "K", ":m '<-2<CR>gv=gv")
map("v", "<S-Tab>", "<gv") map("v", "<S-Tab>", "<gv")
map("v", "<Tab>" , ">gv") map("v", "<Tab>" , ">gv")
map("n", "<C-f>", ":find ") map("n", "<C-p>", ":find ")
map("n", "<C-e>", ":Ex<CR>") map("n", "<C-e>", ":Lex<CR>")
map("n", "<C-x>", ":bd<CR>") map("n", "<C-x>", ":bd<CR>")
map("i", "<C-h>", vim.lsp.buf.signature_help)
-- -----------------------------
-- @PLUGINS
-- -----------------------------
vim.pack.add({
{ src = 'https://github.com/ibhagwan/fzf-lua' },
{ src = 'https://github.com/neovim/nvim-lspconfig' },
{ src = 'https://github.com/echasnovski/mini.nvim' },
{ src = 'https://github.com/sheerun/vim-polyglot' },
{ src = 'https://github.com/romus204/tree-sitter-manager.nvim' },
{ src = 'https://github.com/xiyaowong/transparent.nvim' },
{ src = "https://github.com/vague-theme/vague.nvim" },
})
require("mini.completion").setup()
require("tree-sitter-manager").setup()
require('vague').setup({ transparent = true, })
vim.cmd.colorscheme('vague')
-- Lsp specific, uses nvim-lspconfigs with the below
vim.lsp.enable({ "gopls", "ols" })
map("n", "gd", ":lua vim.lsp.buf.definition()<CR>")
map("n", "ld", ":lua vim.diagnostic.open_float()<CR>")
map("n", "lr", ":lua vim.lsp.buf.rename()<CR>")
map("n", "la", ":lua vim.lsp.buf.code_action()<CR>")
require("fzf-lua").setup({})
map("n", "<C-p>", ":FzfLua files<CR>")
map("n", "<C-o>", ":FzfLua buffers<CR>")
map("n", "<C-i>", ":FzfLua diagnostics_workspace<CR>")
map("n", "<C-f>", ":FzfLua live_grep<CR>")
map("n", "<C-b>", ":FzfLua grep_curbuf<CR>")
-- -----------------------------
-- @AUTOCMDS -- @AUTOCMDS
-- ----------------------------- -- -----------------------------
-- Terminals should open with insert mode -- Terminals should open with insert mode
@@ -54,7 +92,6 @@ vim.api.nvim_create_autocmd({ "BufEnter", "TermEnter", "WinEnter" }, {
end end
end end
}) })
-- highlights yanked text -- highlights yanked text
vim.api.nvim_create_autocmd("TextYankPost", { vim.api.nvim_create_autocmd("TextYankPost", {
callback = function() callback = function()
@@ -64,7 +101,6 @@ vim.api.nvim_create_autocmd("TextYankPost", {
}) })
end, end,
}) })
-- removes trailing whitespace on save -- removes trailing whitespace on save
vim.api.nvim_create_autocmd("BufWritePre", { vim.api.nvim_create_autocmd("BufWritePre", {
callback = function() callback = function()