Compare commits

...

2 commits

Author SHA1 Message Date
9bd99e2794
Add difftastic as git diff 2024-02-20 03:56:06 +01:00
dffe33e507
Add pkl binary and nvim-plugin 2024-02-19 00:25:27 +01:00
9 changed files with 29 additions and 13 deletions

View file

@ -34,8 +34,8 @@ alias grep='grep --color=auto'
alias grep-highlight='grep -e "^" -e'
alias hist-grep='history 0 | grep '
alias http-server='python3 -m http.server'
alias icat="kitty +kitten icat"
alias ip='ip -c'
alias j='jump'
@ -50,8 +50,6 @@ alias make='make -j5'
alias mkdir='mkdir -pv'
alias mv='mv -iv'
alias nixos-rebuild-tinker='sudo nixos-rebuild switch -p tinkering --no-build-nix'
alias pacman-autoremove='sudo pacman -Rns $(pacman -Qtdq)'
alias pacman-autoremove-opts='sudo pacman -Rns $(pacman -Qttdq)'
alias ps-grep='ps aux | grep -v grep | grep'
@ -60,7 +58,6 @@ alias qutebrowser-kiosk='qutebrowser -B $XDG_DATA_HOME/qutebrowser-kiosk -C $XDG
alias rm='rm -I --one-file-system -v'
alias sail='bash vendor/bin/sail'
alias sl='ls'
alias sudo='sudo '

View file

@ -38,6 +38,12 @@ target = "eza"
pipe = "tar xzO"
groups = ["base"]
[[ autoinstall ]]
type = "exe"
source = "https://github.com/apple/pkl/releases/download/0.25.2/pkl-linux-amd64"
target = "pkl"
groups = ["base"]
[[autoinstall]]
type = "exe"
source = "https://git.serguzim.me/serguzim/tools/releases/download/latest/autostart-manage"

View file

@ -27,6 +27,7 @@ export BEMENU_OPTS="--tb '#6272a4'\
--no-overlap\
-P '>' -p ''"
export DFT_DISPLAY="side-by-side-show-both"
export DMENU="bemenu"
export DOCKER_BUILDKIT=1

View file

@ -5,15 +5,21 @@
[core]
excludesfile = ~/.config/git/ignore
editor = vim
pager = less
autocrlf = input
[help]
autocorrect = 20
[diff]
tool = vimdiff
tool = difftastic
external = difft
[difftool]
prompt = false
trustExitCode = true
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[alias]
b = branch -vv
ci = commit
@ -28,12 +34,10 @@
lo = log --graph --decorate --oneline --all
s = status
[log]
date = iso
[merge]
tool = vim_mergetool
conflictstyle = diff3
[mergetool "vim_mergetool"]
cmd = vim -f -c "MergetoolStart" "$MERGED" "$BASE" "$LOCAL" "$REMOTE"
trustExitCode = true
conflictstyle = zdiff3
[sendemail]
smtpserver = mail.serguzim.me
smtpuser = tobias@msrg.cc

View file

@ -5,6 +5,8 @@
home.packages = with pkgs; [
asciinema # tool to record terminal sessions
bat # cat-alternative
cachix # tool to manage nix binary caches
difftastic # tool to compare files
direnv # tool to load custom environments
docker-credential-helpers
doggo # dns client

3
.config/nix/nix.conf Normal file
View file

@ -0,0 +1,3 @@
experimental-features = nix-command flakes
substituters = https://cache.nixos.org https://hyprland.cachix.org https://devenv.cachix.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc= devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=

View file

@ -1,6 +1,6 @@
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed)
ensure_installed = { "c", "lua", "vim", "vimdoc", "query" },
ensure_installed = { "c", "lua", "pkl", "query", "vim", "vimdoc" },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,

View file

@ -17,6 +17,7 @@ return require('packer').startup(function(use)
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate'
})
use("apple/pkl-neovim")
use("github/copilot.vim")
use("mbbill/undotree")

View file

@ -34,6 +34,8 @@ vim.opt.updatetime = 50
vim.opt.colorcolumn = "80"
vim.opt.foldenable = false
vim.api.nvim_create_autocmd('TextYankPost', {
group = vim.api.nvim_create_augroup('highlight_yank', {}),