Add my latest config changes

This commit is contained in:
Ben Kreeger 2025-08-03 10:58:16 -05:00
parent f50051c4fa
commit b156ff8c18
Signed by: kreeger
GPG Key ID: D5CF8683D4BE4B50
6 changed files with 51 additions and 2 deletions

View File

@ -6,6 +6,11 @@ vim.api.nvim_create_autocmd("TextYankPost", {
end,
})
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
pattern = { "*" },
command = [[%s/\s\+$//e]],
})
-- Filetype detection
local filetype_maps = {

View File

@ -24,6 +24,7 @@ return {
},
never_show_by_pattern = {
".terraform*",
".terragrunt-cache*",
},
},
use_libuv_file_watcher = true,

View File

@ -5,7 +5,14 @@ return {
config = function()
require("toggleterm").setup({
open_mapping = [["<leader>tt"]],
direction = "horizontal",
direction = "vertical",
size = function(term)
if term.direction == "horizontal" then
return 15
elseif term.direction == "vertical" then
return vim.o.columns * 0.4
end
end,
})
local Terminal = require("toggleterm.terminal").Terminal
local lazygit = Terminal:new({
@ -25,7 +32,12 @@ return {
{
"<leader>tt",
"<cmd>ToggleTerm dir=git_dir<CR>",
desc = "ToggleTerm: [T]oggle [t]erminal",
desc = "ToggleTerm: [T]oggle [t]erminal (vertical)",
},
{
"<leader>tb",
"<cmd>ToggleTerm dir=git_dir direction=horizontal<CR>",
desc = "ToggleTerm: [T]oggle [b]ottom terminal",
},
{
"<leader>gs",

View File

@ -1,4 +1,15 @@
# vim: ft=sshconfig
Host localhost
ForwardAgent yes
AddKeysToAgent ask
Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"
Host dns01
Hostname dns01.kreegerdo.me
User ansible
IdentityFile ~/.ssh/ansible.ed25519
Host kreegerdome-udm
Hostname 192.168.1.1
User bkreeger

View File

@ -7,6 +7,12 @@
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"agent": {
"default_model": {
"provider": "zed.dev",
"model": "claude-3-5-sonnet"
}
},
"vim_mode": true,
"features": {
"edit_prediction_provider": "zed"
@ -34,6 +40,19 @@
"JavaScript": {
"formatter": { "code_actions": { "source.fixAll.eslint": true } },
"code_actions_on_format": { "source.fixAll.eslint": true }
},
"HCL": {
// Workarond to be able to format_on_save terragrunt files
// https://github.com/gruntwork-io/terragrunt/issues/1037#issuecomment-2143442454
"format_on_save": {
"external": {
"command": "sh",
"arguments": [
"-c",
"TMPFILE=$(mktemp) && cat - > $TMPFILE && terragrunt hclfmt --terragrunt-hclfmt-file $TMPFILE && cat $TMPFILE && rm $TMPFILE"
]
}
}
}
},
"file_scan_exclusions": [

View File

@ -21,6 +21,7 @@ alias dcu="docker compose up"
# terraform aliases
alias tf="terraform"
alias tg="terragrunt"
# Wireguard CLI aliases
alias vpnup="sudo wg-quick up wg0"