configs/readme.md
Kacper Marzecki e09264ff96 asd
2025-10-20 17:52:18 +02:00

70 lines
1.8 KiB
Markdown

# get brew
https://docs.brew.sh/
# install nvim (HEAD to get access to goodies not in stable releases, lots happening rn)
`brew install neovim --HEAD`
# install tmux
`brew install tmux`
# install tpm (tmux package manager) https://github.com/tmux-plugins/tpm
`git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm`
# install fzf & lazygit
`brew install fzf lazygit`
# Wire it up
## put configs where they belong
nvim -> ~/.config/nvim
.tmux.conf -> ~/.tmux.conf
## You can use many nvim configs at the same time
nvim -> ~/.configs/mycustomvim
and then run
`NVIM_APPNAME=mycustomvim nvim`
You can also make a script for this (as seen in ./scripts/n)
## OR link folders/files locally - keep them in a repo, refer to them from directories that programs look at
e.g.
```
mv ~/.tmux.conf ~/git/configs/.tmux.conf
ln .tmux.conf ~/.tmux.conf
```
That way You can keep all Your configs in a repo :)
# Run tmux & get packages
`tmux`
`C-x I` (Ctrl-x, shift-i) (can be with a pause between the 2 chords)
# for better workspace switching
`brew install zoxide`
then add Your fav directories
`zoxide add somedir`
and then You can `C-x C-x` and run a separate tmux session in the selected dir
# Useful nvim thingies
Imma refer to `Space` as `$` (Leader)
- `w e b` -> better movement powered by `nvim-spider`
- `$ g g` -> lazygit
- `C-/` -> open/close terminal
- `C-hjlk` -> move between windows
- `$ e` -> toggle file tree
- `$ $` -> find file
- `$ f f` -> search searches :) e.g. colorscheme, keymaps
# Useful tmux thingies
prefix is `C-x`, so tmux commands are prefixed with this. Imma refer to this prefix as `$`
- `$ C-x` -> zoxide switcher
- `$ c` -> new window
- `$-c` (C-x-c, no prefix) -> enter scrollback, S-V to select line, Y to copy it, hjkl C-d C-u to move up, down
- `Alt-hl` move between windows