Compare commits
14 Commits
e35b894b5d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8e0e3005c5 | |||
| 658470585f | |||
| 6fa4bc2808 | |||
| 692dfc6f02 | |||
| caaff2aee3 | |||
| ebd2e1259a | |||
| b75940f7b0 | |||
| 3833360469 | |||
| 6245f72e58 | |||
| 1fb3de5641 | |||
| a13fb731cc | |||
| 5e865e144e | |||
| b0fcbfeafa | |||
| f88565f29f |
@ -1,8 +0,0 @@
|
|||||||
mv ~/.config/nushell ~/dotfiles/
|
|
||||||
ln -s ~/dotfiles/nushell ~/.config/nushell
|
|
||||||
cd ~/dotfiles
|
|
||||||
ls
|
|
||||||
lazygit
|
|
||||||
nvim ~/dotfiles/manage_configs.sh
|
|
||||||
chmod +x ~/dotfiles/manage_configs.sh
|
|
||||||
~/dotfiles/manage_configs.sh
|
|
||||||
@ -1 +0,0 @@
|
|||||||
/home/sam/dotfiles/nushell
|
|
||||||
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
nushell/history.txt
|
||||||
|
# Ignore application history files
|
||||||
|
**/history.txt
|
||||||
|
**/history.db
|
||||||
|
|
||||||
|
# Ignore shell history files
|
||||||
|
.zsh_history
|
||||||
|
.bash_history
|
||||||
14
.zshrc
14
.zshrc
@ -1,4 +1,8 @@
|
|||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$HOME/.atuin/bin:$HOME/.local/bin:$HOME/.fzf/bin:$PATH"
|
||||||
|
|
||||||
|
export OPENAI_API_KEY="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"
|
||||||
|
|
||||||
|
export TAVILY_API_KEY="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"
|
||||||
|
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
export VISUAL="nvim"
|
export VISUAL="nvim"
|
||||||
@ -69,3 +73,11 @@ source <(carapace-bin _carapace zsh)
|
|||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
alias cat='batcat --color=always --paging=never'
|
alias cat='batcat --color=always --paging=never'
|
||||||
|
|
||||||
|
export ANDROID_HOME=$HOME/android-sdk
|
||||||
|
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools
|
||||||
|
# Source ESP-IDF environment
|
||||||
|
# IMPORTANT: Adjust path if your ESP-IDF installation moves
|
||||||
|
if [ -d "/home/sam/esp/esp-idf" ]; then
|
||||||
|
. "/home/sam/esp/esp-idf/export.sh"
|
||||||
|
fi
|
||||||
|
|||||||
@ -6,3 +6,7 @@
|
|||||||
2025/10/06 (10:14:42) | ===> btop++ v.1.3.0
|
2025/10/06 (10:14:42) | ===> btop++ v.1.3.0
|
||||||
2025/10/06 (10:14:42) | WARNING: NVML: Failed to get maximum GPU power draw, defaulting to 225W: Not Supported
|
2025/10/06 (10:14:42) | WARNING: NVML: Failed to get maximum GPU power draw, defaulting to 225W: Not Supported
|
||||||
2025/10/06 (10:14:42) | WARNING: NVML: Failed to get GPU power usage: Not Supported
|
2025/10/06 (10:14:42) | WARNING: NVML: Failed to get GPU power usage: Not Supported
|
||||||
|
|
||||||
|
2025/10/06 (19:34:16) | ===> btop++ v.1.3.0
|
||||||
|
2025/10/06 (19:34:16) | WARNING: NVML: Failed to get maximum GPU power draw, defaulting to 225W: Not Supported
|
||||||
|
2025/10/06 (19:34:16) | WARNING: NVML: Failed to get GPU power usage: Not Supported
|
||||||
49
install.sh
Executable file
49
install.sh
Executable file
@ -0,0 +1,49 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# A script to install all software for the dotfiles environment.
|
||||||
|
|
||||||
|
echo "--- Starting Environment Setup ---"
|
||||||
|
|
||||||
|
# 1. Install core packages with apt
|
||||||
|
# Added: xclip, jq, pandoc
|
||||||
|
echo "--> Installing core packages with apt..."
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y build-essential curl git zsh ripgrep btop bat zoxide eza fuse3 sshfs gh xclip jq pandoc
|
||||||
|
|
||||||
|
# 2. Install Oh My Zsh and required plugins
|
||||||
|
if [ ! -d "$HOME/.oh-my-zsh" ]; then
|
||||||
|
echo "--> Installing Oh My Zsh and plugins..."
|
||||||
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
|
||||||
|
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
|
||||||
|
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||||
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 3. Install Rust and Cargo
|
||||||
|
if ! command -v cargo &> /dev/null; then
|
||||||
|
echo "--> Installing Rust and Cargo..."
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 4. Install tools with Cargo
|
||||||
|
echo "--> Installing Cargo packages..."
|
||||||
|
cargo install atuin zellij dua-cli navi tealdeer starship yazi-fm
|
||||||
|
|
||||||
|
# 5. Install FZF
|
||||||
|
if [ ! -d "$HOME/.fzf" ]; then
|
||||||
|
echo "--> Installing FZF..."
|
||||||
|
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
||||||
|
~/.fzf/install --all
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 6. Install Lazygit
|
||||||
|
if ! command -v lazygit &> /dev/null; then
|
||||||
|
echo "--> Installing Lazygit..."
|
||||||
|
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": *"v\K[^"]*')
|
||||||
|
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
|
||||||
|
tar xf lazygit.tar.gz lazygit
|
||||||
|
sudo install lazygit /usr/local/bin
|
||||||
|
rm lazygit lazygit.tar.gz
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "--- Software installation complete! ---"
|
||||||
@ -1,76 +1,47 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# A script to back up, move, and symlink configuration files/directories
|
# A script to REMOVE old broken links and CREATE correct new ones.
|
||||||
# from ~/.config to the dotfiles repository.
|
|
||||||
|
set -e # Exit immediately if a command exits with a non-zero status.
|
||||||
|
|
||||||
# --- Configuration ---
|
|
||||||
# Source directory for configs
|
|
||||||
CONFIG_DIR="$HOME/.config"
|
|
||||||
# Destination directory within the dotfiles repo
|
|
||||||
DOTFILES_DIR="$HOME/dotfiles"
|
DOTFILES_DIR="$HOME/dotfiles"
|
||||||
|
CONFIG_DIR="$HOME/.config"
|
||||||
|
|
||||||
# List of DIRECTORIES to manage
|
# List of all config DIRECTORIES to be linked into ~/.config
|
||||||
DIRS_TO_MANAGE=(
|
CONFIG_DIRS=(
|
||||||
"atuin"
|
"atuin" "borg" "btop" "carapace" "gh" "ghostty"
|
||||||
"borg"
|
"kitty" "lazygit" "nushell" "nvim" "zellij"
|
||||||
"btop"
|
|
||||||
"carapace"
|
|
||||||
"gh"
|
|
||||||
"ghostty"
|
|
||||||
"kitty"
|
|
||||||
"lazygit"
|
|
||||||
"nushell"
|
|
||||||
"zellij"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# List of FILES to manage
|
echo "--- Starting to fix symbolic links ---"
|
||||||
FILES_TO_MANAGE=(
|
|
||||||
"starship.toml"
|
|
||||||
)
|
|
||||||
# --- End of Configuration ---
|
|
||||||
|
|
||||||
# Ensure the target directory for configs exists in the dotfiles repo
|
# --- 1. Fix links for directories inside ~/.config ---
|
||||||
mkdir -p "$DOTFILES_DIR/.config"
|
for dir in "${CONFIG_DIRS[@]}"; do
|
||||||
TARGET_DIR="$DOTFILES_DIR/.config"
|
SOURCE_PATH="$DOTFILES_DIR/$dir"
|
||||||
|
LINK_PATH="$CONFIG_DIR/$dir"
|
||||||
|
|
||||||
echo "Starting configuration management..."
|
echo "-> Processing $dir..."
|
||||||
|
# Remove any existing file, directory, or broken link at the destination
|
||||||
# --- Process Directories ---
|
rm -rf "$LINK_PATH"
|
||||||
for dir in "${DIRS_TO_MANAGE[@]}"; do
|
# Create the new, correct symlink. -T prevents nesting.
|
||||||
SOURCE_PATH="$CONFIG_DIR/$dir"
|
ln -sT "$SOURCE_PATH" "$LINK_PATH"
|
||||||
# Check if the source is a real directory and not already a symlink
|
echo " Linked $SOURCE_PATH -> $LINK_PATH"
|
||||||
if [ -d "$SOURCE_PATH" ] && [ ! -L "$SOURCE_PATH" ]; then
|
|
||||||
echo " -> Processing directory: $dir"
|
|
||||||
echo " - Backing up to ${SOURCE_PATH}.bak"
|
|
||||||
cp -r "$SOURCE_PATH" "$SOURCE_PATH.bak"
|
|
||||||
|
|
||||||
echo " - Moving to $TARGET_DIR"
|
|
||||||
mv "$SOURCE_PATH" "$TARGET_DIR/"
|
|
||||||
|
|
||||||
echo " - Creating symlink at $SOURCE_PATH"
|
|
||||||
ln -s "$TARGET_DIR/$dir" "$SOURCE_PATH"
|
|
||||||
else
|
|
||||||
echo " -> Skipping $dir (does not exist or is already a symlink)."
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# --- Process Files ---
|
# --- 2. Fix link for starship.toml file in ~/.config ---
|
||||||
for file in "${FILES_TO_MANAGE[@]}"; do
|
SOURCE_PATH_STARSHIP="$DOTFILES_DIR/starship.toml"
|
||||||
SOURCE_PATH="$CONFIG_DIR/$file"
|
LINK_PATH_STARSHIP="$CONFIG_DIR/starship.toml"
|
||||||
# Check if the source is a real file and not already a symlink
|
echo "-> Processing starship.toml..."
|
||||||
if [ -f "$SOURCE_PATH" ] && [ ! -L "$SOURCE_PATH" ]; then
|
rm -f "$LINK_PATH_STARSHIP"
|
||||||
echo " -> Processing file: $file"
|
ln -sT "$SOURCE_PATH_STARSHIP" "$LINK_PATH_STARSHIP"
|
||||||
echo " - Backing up to ${SOURCE_PATH}.bak"
|
echo " Linked $SOURCE_PATH_STARSHIP -> $LINK_PATH_STARSHIP"
|
||||||
cp "$SOURCE_PATH" "$SOURCE_PATH.bak"
|
|
||||||
|
|
||||||
echo " - Moving to $TARGET_DIR"
|
# --- 3. Fix link for .zshrc file in ~ ---
|
||||||
mv "$SOURCE_PATH" "$TARGET_DIR/"
|
SOURCE_PATH_ZSHRC="$DOTFILES_DIR/.zshrc"
|
||||||
|
LINK_PATH_ZSHRC="$HOME/.zshrc"
|
||||||
|
echo "-> Processing .zshrc..."
|
||||||
|
rm -f "$LINK_PATH_ZSHRC"
|
||||||
|
ln -sT "$SOURCE_PATH_ZSHRC" "$LINK_PATH_ZSHRC"
|
||||||
|
echo " Linked $SOURCE_PATH_ZSHRC -> $LINK_PATH_ZSHRC"
|
||||||
|
|
||||||
echo " - Creating symlink at $SOURCE_PATH"
|
echo "--- All links have been reset correctly. ---"
|
||||||
ln -s "$TARGET_DIR/$file" "$SOURCE_PATH"
|
|
||||||
else
|
|
||||||
echo " -> Skipping $file (does not exist or is already a symlink)."
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Process complete."
|
|
||||||
|
|||||||
@ -1,4 +1,7 @@
|
|||||||
# This file is for environment variables only.
|
# This file is for environment variables only.
|
||||||
|
let-env OPENAI_API_KEY = "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"
|
||||||
|
|
||||||
|
let-env TAVILY_API_KEY="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"
|
||||||
|
|
||||||
# 1. Add binary paths to the PATH environment variable.
|
# 1. Add binary paths to the PATH environment variable.
|
||||||
# We prepend so they are found before system defaults.
|
# We prepend so they are found before system defaults.
|
||||||
@ -8,5 +11,11 @@ $env.PATH = ($env.PATH |
|
|||||||
prepend '/snap/bin'
|
prepend '/snap/bin'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 2. Source the Cargo environment to add its bin directory to the PATH.
|
# 2. Source the Cargo environment to add its bin directory to the PATH.
|
||||||
source $"($nu.home-path)/.cargo/env.nu"
|
source $"($nu.home-path)/.cargo/env.nu"
|
||||||
|
|
||||||
|
$env.ANDROID_HOME = ($env.HOME | path join "android-sdk")
|
||||||
|
$env.PATH = ($env.PATH | prepend ($env.ANDROID_HOME | path join "cmdline-tools" "latest" "bin") ($env.ANDROID_HOME | path join "platform-tools"))
|
||||||
|
|||||||
@ -1,737 +0,0 @@
|
|||||||
/usr/bin/vim ~/.config/ghostty/config
|
|
||||||
/usr/bin/vim ~/.config/nushell/env.nu
|
|
||||||
/usr/bin/vim ~/.config/ghostty/config
|
|
||||||
atuin init nu | save --force ~/.config/nushell/atuin.nu
|
|
||||||
vim ~/.config/nushell/env.nu
|
|
||||||
ps
|
|
||||||
vim ~/.config/nushell/env.nu
|
|
||||||
vim ~/.config/nushell/atuin.nu
|
|
||||||
vim ~/.config/nushell/env.nu
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
vim ~/.config/nushell/env.nu
|
|
||||||
which atuin
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
atuin init nu | save --force ~/.config/nushell/atuin.nu
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
atuin init nu | save --force ~/.config/nushell/atuin.nu
|
|
||||||
ps
|
|
||||||
sudo apt install zellij
|
|
||||||
cd ~
|
|
||||||
<\n> wget https://github.com/zellij-project/zellij/releases/latest/download/zellij-x86_64-unknown-linux-musl.tar.gz
|
|
||||||
cargo
|
|
||||||
(type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)) \<\n>&& curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \<\n>&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \<\n>&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \<\n>&& sudo apt update \<\n>&& sudo apt install gh -y
|
|
||||||
bash -c '(type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)) && curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null && sudo apt update && sudo apt install gh -y'
|
|
||||||
<\n> gh extension install gennaro-tedesco/gh-zellij
|
|
||||||
gh extension install gennaro-tedesco/gh-zellij
|
|
||||||
gh auth login
|
|
||||||
ssh-keygen -t ed25519 -C "samuelrolfe@gmail.com"
|
|
||||||
ls -al ~/.ssh/*.pub
|
|
||||||
gh ssh-key add ~/.ssh/id_ed25519.pub
|
|
||||||
gh auth login
|
|
||||||
gh extension install gennaro-tedesco/gh-zellij
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
||||||
source $"($nu.home-path)/.cargo/env.nu"
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
cargo install --locked zellij
|
|
||||||
zellij
|
|
||||||
ls
|
|
||||||
pwd
|
|
||||||
cx
|
|
||||||
zellij
|
|
||||||
wget https://github.com/rsteube/carapace-bin/releases/latest/download/carapace-bin_linux_amd64.tar.gz
|
|
||||||
curl -fsSL https://carapace-sh.github.io/install.sh | sh
|
|
||||||
# We will use curl since we know it's installed.<\n># The -L flag follows redirects, and -o saves the file.<\n>curl -L https://github.com/rsteube/carapace-bin/releases/latest/download/carapace-bin_linux_amd64.tar.gz -o carapace.tar.gz
|
|
||||||
tar -xzf carapace.tar.gz
|
|
||||||
curl -L https://github.com/rsteube/carapace-bin/releases/latest/download/carapace-bin_linux_amd64.tar.gz -o carapace.tar.gz
|
|
||||||
tar -xzf carapace.tar.gz
|
|
||||||
file carapace.tar.gz
|
|
||||||
rm carapace.tar.gz
|
|
||||||
wget -O carapace.tar.gz https://github.com/rsteube/carapace-bin/releases/latest/download/carapace-bin_linux_amd64.tar.gz
|
|
||||||
rm -f carapace.tar.gz
|
|
||||||
wget -O carapace.tar.gz https://github.com/carapace-sh/carapace-bin/releases/latest/download/carapace-bin_linux_amd64.tar.gz
|
|
||||||
curl -L https://github.com/carapace-sh/carapace-bin/releases/download/v1.5.0/carapace-bin_1.5.0_linux_amd64.tar.gz
|
|
||||||
curl -L https://github.com/carapace-sh/carapace-bin/releases/download/v1.5.0/carapace-bin_1.5.0_linux_amd64.tar.gz -o carapace.tar.gz
|
|
||||||
tar -xzf carapace.tar.gz
|
|
||||||
mv carapace-bin ~/.local/bin/
|
|
||||||
ls
|
|
||||||
mv carapace ~/.local/bin/carapace-bin
|
|
||||||
ls
|
|
||||||
carapace-bin --version
|
|
||||||
mkdir -p ~/.local/bin
|
|
||||||
--help
|
|
||||||
mkdir --help
|
|
||||||
mkdir ~/.local/bin
|
|
||||||
mv carapace ~/.local/bin/carapace-bin
|
|
||||||
carapace-bin _carapace nushell | save --force ~/.config/nushell/carapace.nu
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
zellij
|
|
||||||
carapace
|
|
||||||
cara
|
|
||||||
ls ~/.config/nushell/
|
|
||||||
vim vim ~/.config/nushell/config.nu
|
|
||||||
carapace-bin _carapace nushell | save --force ~/.config/nushell/carapace.nu
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
vim ~/.config/nushell/carapace.nu
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
carapace --style
|
|
||||||
carapace
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
carapace
|
|
||||||
carapace --style
|
|
||||||
zellij --theme "catppuccin-macchiato"
|
|
||||||
zeillij options
|
|
||||||
zellij options
|
|
||||||
vim ~/.config/zellij/themes
|
|
||||||
zellij --t
|
|
||||||
zellij
|
|
||||||
mkdir ~/.config/zellij/themes
|
|
||||||
zellij
|
|
||||||
vim ~/.config/zellij/themes
|
|
||||||
rm ~/.config/zellij/themes
|
|
||||||
mkdir ~/.config/zellij/themes
|
|
||||||
vim ~/.config/zellij/config.kdl
|
|
||||||
carapace
|
|
||||||
zellij
|
|
||||||
carapace
|
|
||||||
carapace --list
|
|
||||||
<\n> curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash
|
|
||||||
zoxide --version
|
|
||||||
ls
|
|
||||||
zoxide init nushell | save --force ~/.config/nushell/zoxide.nu
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
ls
|
|
||||||
pwd
|
|
||||||
cd ~/dev/ghostty
|
|
||||||
cd Downloads
|
|
||||||
cd /Documents
|
|
||||||
ls
|
|
||||||
cd ../
|
|
||||||
ls
|
|
||||||
cd /Documents
|
|
||||||
cd Documents
|
|
||||||
cd ../
|
|
||||||
vim ~/.config/nushell/zoxide.nu
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
z D
|
|
||||||
z Dow
|
|
||||||
z h
|
|
||||||
z /
|
|
||||||
z ~
|
|
||||||
z
|
|
||||||
ls
|
|
||||||
sudo mkdir -p /etc/apt/keyrings
|
|
||||||
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo gpg --dearmor -o /etc/apt/keyrings/gierens.gpg
|
|
||||||
echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install eza
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
ls
|
|
||||||
ll
|
|
||||||
tree
|
|
||||||
ll
|
|
||||||
z dev
|
|
||||||
ll
|
|
||||||
ls
|
|
||||||
z
|
|
||||||
ll
|
|
||||||
ls
|
|
||||||
rm carapace.tar.gz
|
|
||||||
vim README.md
|
|
||||||
rm README.md
|
|
||||||
ll
|
|
||||||
ls
|
|
||||||
zellij
|
|
||||||
z Pictures
|
|
||||||
z
|
|
||||||
z Desktop/
|
|
||||||
z
|
|
||||||
z .config/
|
|
||||||
eza
|
|
||||||
z
|
|
||||||
sudo apt install fzf
|
|
||||||
cargo install fzf-nu
|
|
||||||
cargo install --git https://github.com/j-n-n/fzf-nu
|
|
||||||
cargo install --git git@github.com:j-n-n/fzf-nu.git
|
|
||||||
cargo install --git ssh://git@github.com:j-n-n/fzf-nu.git
|
|
||||||
cargo install --git ssh://git@github.com/j-n-n/fzf-nu.git
|
|
||||||
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
|
||||||
~/.fzf/install
|
|
||||||
cargo install --git https://github.com/j-n-n/fzf-nu
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
fzf
|
|
||||||
fzf --help
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
ll
|
|
||||||
ls
|
|
||||||
ll
|
|
||||||
eza -l
|
|
||||||
ll
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
atuin init nu | save --force ~/.config/nushell/atuin.nu
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
atuin init nu | save --force ~/.config/nushell/atuin.nu
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
sed -i 's/get -i/get -o/g' ~/.config/nushell/atuin.nu
|
|
||||||
ll
|
|
||||||
ls
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
ll
|
|
||||||
ls
|
|
||||||
la
|
|
||||||
tree
|
|
||||||
fzf --help
|
|
||||||
zellij
|
|
||||||
ps
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
vim ~/.config/nushell/env.nu
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
ps
|
|
||||||
eza -l
|
|
||||||
cx
|
|
||||||
eza | fzf
|
|
||||||
eza | fzf | vim
|
|
||||||
zellij
|
|
||||||
tree
|
|
||||||
cd ~/Downloads
|
|
||||||
<\n> wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.zip
|
|
||||||
mkdir -p ~/.local/share/fonts
|
|
||||||
mkdir ~/.local/share/fonts
|
|
||||||
unzip JetBrainsMono.zip -d ~/.local/share/fonts/JetBrainsMonoNerdFont
|
|
||||||
<\n> fc-cache -fv
|
|
||||||
- <\n> vim ~/.config/ghostty/config
|
|
||||||
vim ~/.config/ghostty/config
|
|
||||||
tree
|
|
||||||
tree -L2
|
|
||||||
z Templates
|
|
||||||
z
|
|
||||||
z Sam
|
|
||||||
z /Documents
|
|
||||||
ll
|
|
||||||
ls
|
|
||||||
z Sam
|
|
||||||
ls
|
|
||||||
vim terminal_set_up.text
|
|
||||||
vim terminal_set_up.text
|
|
||||||
rm ~/.vim/swapfiles/%home%sam%Documents%Sam%terminal_set_up.text.swp
|
|
||||||
vim terminal_set_up.text
|
|
||||||
z
|
|
||||||
vim ~/.zshrc
|
|
||||||
z /Documents/Sam
|
|
||||||
vim terminal_set_up.text
|
|
||||||
z
|
|
||||||
vim ~/.zshrc
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install bat
|
|
||||||
vim ~/.zshrc
|
|
||||||
carapace
|
|
||||||
cargo install starship --locked
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
z zshrc
|
|
||||||
vim ~/.zshrc
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
z zshrc
|
|
||||||
z Desktop/
|
|
||||||
z
|
|
||||||
starship
|
|
||||||
z Documents
|
|
||||||
z sam
|
|
||||||
bat facebook_cricket_gear.tex
|
|
||||||
bat
|
|
||||||
vim ~/.zshrc
|
|
||||||
z sam
|
|
||||||
bat facebook_cricket_gear.tex
|
|
||||||
cat ~/.zshrc
|
|
||||||
Bat
|
|
||||||
fzf
|
|
||||||
fzf
|
|
||||||
fzf test
|
|
||||||
fzf
|
|
||||||
carapace
|
|
||||||
git clone git@github.com:BurntSushi/ripgrep.git
|
|
||||||
cd ripgrep
|
|
||||||
cargo fetch
|
|
||||||
cd ..
|
|
||||||
rm -rf ripgrep
|
|
||||||
vim ~/.zshrc
|
|
||||||
batcat
|
|
||||||
batcat facebook_cricket_gear.tex
|
|
||||||
Starship
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
bat facebook_cricket_gear.tex
|
|
||||||
batcat facebook_cricket_gear.tex
|
|
||||||
starship
|
|
||||||
zellij
|
|
||||||
vim ~/.config/zellij/config.kdl
|
|
||||||
echo $SHELL
|
|
||||||
zellij
|
|
||||||
ssh sam@192.168.20.13
|
|
||||||
batcat
|
|
||||||
batcat ~/.config/nushell/config.nu
|
|
||||||
batcat ~/.zshrc
|
|
||||||
vim ~/.zshrc
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
ssh sam@192.168.20.13
|
|
||||||
z sam
|
|
||||||
ll
|
|
||||||
ls
|
|
||||||
vim terminal_set_up.text
|
|
||||||
batcat terminal_set_up.text
|
|
||||||
vim terminal_set_up.text
|
|
||||||
ssh sam@192.168.20.13
|
|
||||||
z
|
|
||||||
- <\n> vim ~/.config/ghostty/config
|
|
||||||
ssh sam@192.168.20.13
|
|
||||||
zellij
|
|
||||||
zu
|
|
||||||
vim ~/.zshrc
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
tree -L2
|
|
||||||
tree | fzf
|
|
||||||
zellij
|
|
||||||
set -o vi
|
|
||||||
exit
|
|
||||||
nvim
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install neovim
|
|
||||||
nvim
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/colorscheme.lua
|
|
||||||
nvim
|
|
||||||
~/.config/nvim/lua/sam/options.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/options.lua
|
|
||||||
vim ~/.config/nvim/init.lua
|
|
||||||
vim /.config/nvim/lua/sam/plugins/icons.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/icons.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/filetree.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lualine.lua
|
|
||||||
nvim
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/treesitter.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/mason.lua
|
|
||||||
nvim
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
rm -rf ~/.local/share/nvim/lazy
|
|
||||||
rm -rf ~/.local/share/nvim/mason
|
|
||||||
rm ~/.config/nvim/lua/sam/plugins/mason.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
rm -rf ~/.local/share/nvim/lazy
|
|
||||||
rm -rf ~/.local/share/nvim/mason
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
rm -rf ~/.local/share/nvim/lazy
|
|
||||||
rm -rf ~/.local/share/nvim/mason
|
|
||||||
/.config/nvim/lua/sam/plugins/cmp.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/cmp.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/telescope.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
sudo apt remove neovim
|
|
||||||
sudo add-apt-repository ppa:neovim-ppa/stable
|
|
||||||
sudo apt install neovim
|
|
||||||
nvim --version
|
|
||||||
apt-cache policy neovim
|
|
||||||
sudo add-apt-repository ppa:neovim-ppa/stable
|
|
||||||
sudo apt update
|
|
||||||
apt-cache policy neovim
|
|
||||||
curl -LO https://github.com/neovim/neovim/releases/download/v0.11.4/nvim-linux-x86_64.appimage
|
|
||||||
chmod u+x nvim-linux-x86_64.appimage
|
|
||||||
sudo mv nvim-linux-x86_64.appimage /usr/local/bin/nvim
|
|
||||||
nvim --version
|
|
||||||
nvim
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/gitsigns.lua
|
|
||||||
nvim
|
|
||||||
fzf
|
|
||||||
zellij
|
|
||||||
nvim
|
|
||||||
ll ~/.config/nvim/lua/sam/plugins/
|
|
||||||
ls
|
|
||||||
z D
|
|
||||||
z sam
|
|
||||||
ll
|
|
||||||
vim terminal_set_up.text
|
|
||||||
lm
|
|
||||||
ll
|
|
||||||
zellij
|
|
||||||
vim terminal_set_up.text
|
|
||||||
z sam
|
|
||||||
vim terminal_set_up.text
|
|
||||||
vim ~/.config/starship.toml
|
|
||||||
starship config > ~/.config/starship.toml
|
|
||||||
vim ~/.config/starship.toml
|
|
||||||
starship config
|
|
||||||
starship
|
|
||||||
vim ~/.config/nushell/config.nu
|
|
||||||
batcat ~/.config/nushell/config.nu
|
|
||||||
vim ~/.zshrc
|
|
||||||
batcat ~/.zshrc
|
|
||||||
batcat --plain ~/.config/nushell/config.nu
|
|
||||||
batcat --plain ~/.zshrc
|
|
||||||
vim ~/.zshrc
|
|
||||||
batcat ~/.zshrc
|
|
||||||
batcat -p ~/.zshrc
|
|
||||||
xclip
|
|
||||||
batcat -p ~/.zshrc | xclip -selection clipboard
|
|
||||||
vim vim ~/.config/nushell/config.nu
|
|
||||||
vim ~/.config/nushell/carapace.nu
|
|
||||||
batcat -p ~/.config/nushell/carapace.nu
|
|
||||||
vim ~/.config/nushell/carapace.nu
|
|
||||||
vim ~/.config/nushell/zoxide.nu
|
|
||||||
batcat -p ~/.config/nushell/zoxide.nu
|
|
||||||
batcat -p ~/.config/nushell/zoxide.nu | xclip -selection clipboard
|
|
||||||
vim ~/.config/starship.toml
|
|
||||||
z sam
|
|
||||||
ls
|
|
||||||
vim terminal_set_up.text
|
|
||||||
ip -a
|
|
||||||
ip a
|
|
||||||
carapace
|
|
||||||
z sam
|
|
||||||
ll
|
|
||||||
nvim terminal_set_up.text
|
|
||||||
mkdir ~/Vorta-Mount
|
|
||||||
xrandr
|
|
||||||
nvidia-smi
|
|
||||||
sudo ubuntu-drivers devices<\n>
|
|
||||||
lspci -nnk | grep -i vga -A3<\n>
|
|
||||||
glxinfo | grep "OpenGL renderer"<\n>
|
|
||||||
nvim ~/.config/monitors.xml
|
|
||||||
lsmod | grep nvidia<\n>
|
|
||||||
sudo modprobe nvidia<\n>
|
|
||||||
dmesg | grep -i nvidia<\n>
|
|
||||||
sudo dmesg | grep -i nvidia<\n>
|
|
||||||
dkms status<\n>
|
|
||||||
cat /etc/modprobe.d/nvidia-drm.conf<\n>
|
|
||||||
dpkg -l | grep nvidia<\n>
|
|
||||||
uname -r<\n>
|
|
||||||
find /lib/modules/$(uname -r)/ -type f -name '*nvidia*'<\n>
|
|
||||||
$sysinfo os.kernel<\n>
|
|
||||||
uname -a
|
|
||||||
sudo apt install dkms<\n>
|
|
||||||
sudo dkms build nvidia/575.64.03
|
|
||||||
sudo dkms install nvidia/575.64.03
|
|
||||||
sudo dkms status
|
|
||||||
sudo apt-get purge nvidia*
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install nvidia-driver-575
|
|
||||||
nvidia-smi
|
|
||||||
dmesg | grep -i nvidia<\n>
|
|
||||||
sudo dmesg | grep -i nvidia<\n>
|
|
||||||
lsmod | grep nvidia
|
|
||||||
sudo modprobe nvidia
|
|
||||||
ll
|
|
||||||
z sam
|
|
||||||
ll
|
|
||||||
ls
|
|
||||||
tree
|
|
||||||
vmtext
|
|
||||||
ll
|
|
||||||
nvim facebook_cricket_gear.tex
|
|
||||||
ls ~/.vim/plugged/
|
|
||||||
which zathura
|
|
||||||
nvim facebook_cricket_gear.tex
|
|
||||||
pws
|
|
||||||
z sam
|
|
||||||
nvim facebook_cricket_gear.tex
|
|
||||||
ls
|
|
||||||
nvim notes_GPS_tracker_mobile.txt
|
|
||||||
nvim test_text.txt
|
|
||||||
ls
|
|
||||||
nvim react_test.js
|
|
||||||
nvim test_text.txt
|
|
||||||
nvim react_test.js
|
|
||||||
nvim
|
|
||||||
nvim ~/.vimrc
|
|
||||||
ll ~/.config/nvim/lua/sam/plugins/
|
|
||||||
ll ~/.config/nvim/
|
|
||||||
vim ~/.config/nvim/init.lua
|
|
||||||
ll ~/.config/nvim/lua
|
|
||||||
ll ~/.config/nvim/lua/sam
|
|
||||||
nvim ~/.config/nvim/lua/sam/lazy.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/options.lua
|
|
||||||
ll ~/.config/nvim/
|
|
||||||
nvim ~/.config/nvim/lazy-lock.json
|
|
||||||
ll ~/.config/nvim/
|
|
||||||
vim ~/.config/nvim/init.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/lazy.lua<\n>
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/markdown.lua
|
|
||||||
neovim
|
|
||||||
nvim
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/markdown.lua
|
|
||||||
nvim
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/markdown.lua
|
|
||||||
nvim
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/markdown.lua
|
|
||||||
z sam
|
|
||||||
test_readme.md
|
|
||||||
nvim test_readme.md
|
|
||||||
nvim
|
|
||||||
nvim test_readme.md
|
|
||||||
nvim
|
|
||||||
nvim test_readme.md
|
|
||||||
test_readme.md
|
|
||||||
nvim test_readme.md
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/markdown.lua
|
|
||||||
nvim
|
|
||||||
nvim test_readme.md
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/markdown.lua
|
|
||||||
nvim test_readme.md
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/markdown.lua
|
|
||||||
nvim test_readme.md
|
|
||||||
nvim test_text.txt
|
|
||||||
nvim test_readme.md
|
|
||||||
pandoc test_readme.md -o test.html --standalone --self-contained
|
|
||||||
open test.html
|
|
||||||
xdg-open test.html
|
|
||||||
nvim test_readme.md
|
|
||||||
pandoc test_readme.md -o test.html --standalone --self-contained
|
|
||||||
xdg-open test.html
|
|
||||||
nvim test_readme.md
|
|
||||||
ll
|
|
||||||
nvim test.html
|
|
||||||
nvim
|
|
||||||
nvim
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/markdown.lua
|
|
||||||
nvim
|
|
||||||
nvim test.html
|
|
||||||
nvim test_readme.md
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/markdown.lua
|
|
||||||
ssh sam@192.168.20.13
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
ll
|
|
||||||
z
|
|
||||||
z sam
|
|
||||||
ll
|
|
||||||
ll ~/.config/nvim/lua/sam/plugins/
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
grep -r "lspconfig\|framework" ~/.config/nvim/lua/sam/plugins/
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/markdown.lua
|
|
||||||
nvim test.html
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/mason-tools.lua
|
|
||||||
nvim
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
nvim test.html
|
|
||||||
z sam
|
|
||||||
ls
|
|
||||||
nvim test_readme.md
|
|
||||||
nvim test.html
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim
|
|
||||||
nvim test.html
|
|
||||||
ls
|
|
||||||
nvim test_1.html
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim test_1.html
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
ssh sam@192.168.20.13
|
|
||||||
z sam
|
|
||||||
nvim test_1.html
|
|
||||||
nvim westyck_forsale.html
|
|
||||||
vimtutor
|
|
||||||
nvim
|
|
||||||
ll
|
|
||||||
nvim test.json
|
|
||||||
nvim react_test.js
|
|
||||||
nvim
|
|
||||||
nvim ~/.config/nvim/init.vim
|
|
||||||
vim ~/.config/nvim/init.lua
|
|
||||||
nvim westyck_forsale.html
|
|
||||||
ll
|
|
||||||
nvim test_r
|
|
||||||
nvim test_readme.md
|
|
||||||
help rename
|
|
||||||
mv test_text.txt facebook_sale.txt
|
|
||||||
nvim facebook_sale.txt
|
|
||||||
ll
|
|
||||||
mv test_readme.md facebook_sales.md
|
|
||||||
nvim facebook_sales.md
|
|
||||||
nvim ~/.config/nvim/lua/sam/options.lua
|
|
||||||
nvim facebook_sales.md
|
|
||||||
fg
|
|
||||||
ll
|
|
||||||
nvim facebook_sales.md
|
|
||||||
zellij --help
|
|
||||||
nvim facebook_sales.md
|
|
||||||
zellij
|
|
||||||
ll
|
|
||||||
nvim
|
|
||||||
cargo install --locked yazi-fm<\n>
|
|
||||||
yazi
|
|
||||||
zellij
|
|
||||||
ls -a ~/
|
|
||||||
nvim .bashrc
|
|
||||||
ls
|
|
||||||
ls -a
|
|
||||||
rm .bashrc
|
|
||||||
nvim ~/.bashrc
|
|
||||||
source ~/.bashrc
|
|
||||||
nvim ~/.zshrc
|
|
||||||
source ~/.zshrc
|
|
||||||
nvim ~/.config/nushell/config.nu
|
|
||||||
nvim ~/.config/nushell/env.nu
|
|
||||||
source ~/.config/nushell/config.nu
|
|
||||||
yazi
|
|
||||||
ssh sam@192.168.20.13
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
zellij
|
|
||||||
$env.SHELL
|
|
||||||
echo $SHELL
|
|
||||||
echo $TERM
|
|
||||||
infocmp xterm-ghostty > ghostty.terminfo<\n>
|
|
||||||
echo $TERM | cat -v
|
|
||||||
echo $env.TERM | cat -v<\n>
|
|
||||||
infocmp "xterm-ghostty" > ghostty.terminfo
|
|
||||||
scp ghostty.terminfo sam@192.168.20.35:/tmp/<\n>
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
ssh sam@192.168.20.35 bash --noprofile --norc
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
ls
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
fzf
|
|
||||||
cargo install tealdeer
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
cargo install tealdeer
|
|
||||||
tldr --update
|
|
||||||
cargo install tealdeer
|
|
||||||
tldr --update
|
|
||||||
ip a
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
ip a
|
|
||||||
zellij
|
|
||||||
tldr tar
|
|
||||||
ssh sam@192.168.20.13
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
cargo install tealdeer
|
|
||||||
exit
|
|
||||||
cargo install navi
|
|
||||||
navi
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
yazi
|
|
||||||
zellij
|
|
||||||
fzf plugins
|
|
||||||
ll ~/.config/nvim/lua/sam/plugins/
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install ripgrep
|
|
||||||
sudo add-apt-repository ppa:lazygit-team/release
|
|
||||||
sudo apt install btop
|
|
||||||
cargo install dua-cli
|
|
||||||
btop
|
|
||||||
cargo install dua-cli
|
|
||||||
z sam
|
|
||||||
ll
|
|
||||||
zellij
|
|
||||||
yazi
|
|
||||||
sudo add-apt-repository --remove ppa:lazygit-team/release
|
|
||||||
sudo apt update
|
|
||||||
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | \<\n>grep -Po '"tag_name": *"v\K[^"]*')
|
|
||||||
dua
|
|
||||||
ssh sam@192.168.20.35
|
|
||||||
rg test
|
|
||||||
ssh sam@192.168.20.13
|
|
||||||
which rg
|
|
||||||
btop
|
|
||||||
dua
|
|
||||||
rg init.lua
|
|
||||||
exit
|
|
||||||
exit
|
|
||||||
zellij
|
|
||||||
exot
|
|
||||||
host
|
|
||||||
host -a
|
|
||||||
hostname
|
|
||||||
rg init.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/options.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
yazi
|
|
||||||
yazi ~/.config
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/init.lua
|
|
||||||
ls ~/.config/nvim/lua/sam/plugins
|
|
||||||
cd ../
|
|
||||||
ls
|
|
||||||
cd ~
|
|
||||||
ls ~/.config/nvim/lua/sam/
|
|
||||||
ls ~/.config/nvim/lua
|
|
||||||
ls ~/.config/
|
|
||||||
vim ~/.config/nvim/lua/sam/lazy.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/lsp.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/lint.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/dap.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/comment.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/autopairs.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/theme-switcher.lua
|
|
||||||
nvim
|
|
||||||
<\n> rm ~/.config/nvim/lua/sam/plugins/theme-switcher.lua
|
|
||||||
rm ~/.config/nvim/lua/sam/plugins/theme-switcher.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/theme-switcher.lua
|
|
||||||
nvim
|
|
||||||
cat ~/.config/nvim/init.lua
|
|
||||||
cat ~/.config/nvim/lua/sam/options.lua
|
|
||||||
vim ~/.config/nvim/lua/sam/plugins/theme-switcher.lua
|
|
||||||
nvim vim ~/.config/nvim/lua/sam/plugins/theme-switcher.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/
|
|
||||||
ls ~/.config/nvim/lua/sam/plugins
|
|
||||||
nvim vim ~/.config/nvim/lua/sam/plugins/theme-switcher.lua
|
|
||||||
nvim
|
|
||||||
nvim vim ~/.config/nvim/lua/sam/plugins/theme-switcher.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/lazy.lua
|
|
||||||
nvim
|
|
||||||
nvim ~/.config/nvim/lua/sam/lazy.lua
|
|
||||||
nvim /.config/nvim/lua/sam/plugins/theme-catppuccin.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/theme-catppuccin.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/theme-tokyonight.lua
|
|
||||||
nvim vim ~/.config/nvim/lua/sam/plugins/telescope.lua
|
|
||||||
nvim
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/init.lua
|
|
||||||
rg init.lua
|
|
||||||
nvim ~/.config/nvim/init.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/colorscheme.lua
|
|
||||||
rm ~/.config/nvim/lua/sam/plugins/theme-switcher.lua
|
|
||||||
nvim
|
|
||||||
ls~/.config/nvim/lua/sam/plugins/
|
|
||||||
ls ~/.config/nvim/lua/sam/plugins/
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/telescope.lua
|
|
||||||
nvim
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/telescope.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/telescope-addons.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/telescope.lua
|
|
||||||
nvim
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/theme-gruvbox.lua
|
|
||||||
nvim
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/theme-dracula.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/theme-kanagawa.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/theme-everforest.lua
|
|
||||||
nvim ~/.config/nvim/lua/sam/plugins/theme-onedark.lua
|
|
||||||
nvim
|
|
||||||
cd Documents
|
|
||||||
^mkdir ~/dotfiles
|
|
||||||
mkdir ~/dotfiles
|
|
||||||
cd ~/dotfiles
|
|
||||||
git init
|
|
||||||
git remote add origin git@gitea.lab.audasmedia.com.au:sam/dotfiles.git
|
|
||||||
echo ".DS_Store" > .gitignore
|
|
||||||
echo "*.swp" >> .gitignore
|
|
||||||
cp ~/.zshrc ~/.zshrc.bak
|
|
||||||
mv ~/.zshrc ~/dotfiles/
|
|
||||||
ln -s ~/dotfiles/.zshrc ~/.zshrc
|
|
||||||
cp -r ~/.config/nvim ~/.config/nvim.bak
|
|
||||||
mv ~/.config/nvim ~/dotfiles/
|
|
||||||
ln -s ~/dotfiles/nvim ~/.config/nvim
|
|
||||||
cp -r ~/.config/nushell ~/.config/nushell.bak
|
|
||||||
@ -1,38 +1,42 @@
|
|||||||
{
|
{
|
||||||
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
||||||
"LuaSnip": { "branch": "master", "commit": "73813308abc2eaeff2bc0d3f2f79270c491be9d7" },
|
"LuaSnip": { "branch": "master", "commit": "3732756842a2f7e0e76a7b0487e9692072857277" },
|
||||||
"catppuccin": { "branch": "main", "commit": "c89184526212e04feffbddda9d06b041a8fca416" },
|
"avante.nvim": { "branch": "main", "commit": "ca95e0386433da2077184719886fa658257261a3" },
|
||||||
|
"catppuccin": { "branch": "main", "commit": "234fc048de931a0e42ebcad675bf6559d75e23df" },
|
||||||
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "bd5a7d6db125d4654b50eeae9f5217f24bb22fd3" },
|
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
|
||||||
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
|
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "9d6f881a4047a51c7709223dcf24e967633c6523" },
|
"conform.nvim": { "branch": "master", "commit": "cde4da5c1083d3527776fee69536107d98dae6c9" },
|
||||||
"dracula.nvim": { "branch": "main", "commit": "041d923368d540a1e438989ce8f915628081a56a" },
|
"dracula.nvim": { "branch": "main", "commit": "ae752c13e95fb7c5f58da4b5123cb804ea7568ee" },
|
||||||
"everforest-nvim": { "branch": "main", "commit": "d2936185a6d266def29fd7b523d296384580ef08" },
|
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "1ee5c1fd068c81f9dd06483e639c2aa4587dc197" },
|
"everforest-nvim": { "branch": "main", "commit": "557bce922401e247a596583679bc181d4d688554" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "20ad4419564d6e22b189f6738116b38871082332" },
|
||||||
"gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" },
|
"gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" },
|
||||||
"kanagawa.nvim": { "branch": "master", "commit": "27f1e119f3a7e6d11d435a59e3262e6affda1f83" },
|
"kanagawa.nvim": { "branch": "master", "commit": "aef7f5cec0a40dbe7f3304214850c472e2264b10" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||||
"live-preview.nvim": { "branch": "main", "commit": "35ddc5a99499d1d2f4adefb7e92d0c537353fdec" },
|
"live-preview.nvim": { "branch": "main", "commit": "a1bb1b3a851df5276e53908276f5ae1d724d4812" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" },
|
"lualine.nvim": { "branch": "master", "commit": "3946f0122255bc377d14a59b27b609fb3ab25768" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "155eac5d8609a2f110041f8ac3491664cc126354" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "b1d9a914b02ba5660f1e272a03314b31d4576fe2" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
"mason.nvim": { "branch": "main", "commit": "57e5a8addb8c71fb063ee4acda466c7cf6ad2800" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
|
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
"nvim-autopairs": { "branch": "master", "commit": "7a2c97cccd60abc559344042fefb1d5a85b3e33b" },
|
||||||
"nvim-dap": { "branch": "master", "commit": "48570d8372f63c9e9ba399a16606f9553034a9b2" },
|
"nvim-cmp": { "branch": "main", "commit": "106c4bcc053a5da783bf4a9d907b6f22485c2ea0" },
|
||||||
|
"nvim-dap": { "branch": "master", "commit": "b38f7d30366d9169d0a623c4c85fbcf99d8d58bb" },
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
|
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
|
||||||
"nvim-lint": { "branch": "master", "commit": "335a6044be16d7701001059cba9baa36fbeef422" },
|
"nvim-lint": { "branch": "master", "commit": "2536f1b18ea389e6b078b3a47a5e273c74a46a34" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "db8fef885009fdec0daeff3e5dda92e1f539611e" },
|
"nvim-lspconfig": { "branch": "master", "commit": "cc3d02065593d74b2fa7c0ff337c3e8b087fd788" },
|
||||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "87d096a39cb2d5d43e6771563575ff042a79f48b" },
|
"nvim-tree.lua": { "branch": "master", "commit": "1eda2569394f866360e61f590f1796877388cb8a" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" },
|
"nvim-web-devicons": { "branch": "master", "commit": "8dcb311b0c92d460fac00eac706abd43d94d68af" },
|
||||||
"onedark.nvim": { "branch": "master", "commit": "de495fabe171d48aed5525f002d14414efcecbb2" },
|
"onedark.nvim": { "branch": "master", "commit": "6c10964f91321c6a0f09bcc41dd64e7a6602bc4f" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
"tabular": { "branch": "master", "commit": "12437cd1b53488e24936ec4b091c9324cafee311" },
|
"tabular": { "branch": "master", "commit": "12437cd1b53488e24936ec4b091c9324cafee311" },
|
||||||
"telescope-themes": { "branch": "main", "commit": "65721365bd7a04a6c9679e76b6387b60320fd5f3" },
|
"telescope-themes": { "branch": "main", "commit": "65721365bd7a04a6c9679e76b6387b60320fd5f3" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
|
"telescope.nvim": { "branch": "master", "commit": "3a12a853ebf21ec1cce9a92290e3013f8ae75f02" },
|
||||||
"tokyonight.nvim": { "branch": "main", "commit": "4d159616aee17796c2c94d2f5f87d2ee1a3f67c7" },
|
"tokyonight.nvim": { "branch": "main", "commit": "5da1b76e64daf4c5d410f06bcb6b9cb640da7dfd" },
|
||||||
"vim-markdown": { "branch": "master", "commit": "8f6cb3a6ca4e3b6bcda0730145a0b700f3481b51" },
|
"vim-markdown": { "branch": "master", "commit": "1bc9d0cd8e1cc3e901b0a49c2b50a843f1c89397" },
|
||||||
"which-key.nvim": { "branch": "main", "commit": "904308e6885bbb7b60714c80ab3daf0c071c1492" }
|
"vimtex": { "branch": "master", "commit": "32bcb3922c20588e00de68f73c86312eda2141ad" },
|
||||||
|
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
vim.cmd("colorscheme catppuccin")
|
vim.cmd("colorscheme kanagawa-wave")
|
||||||
@ -5,3 +5,88 @@ vim.g.maplocalleader = " " -- Set the local leader key to the space bar.
|
|||||||
-- sam.options.lua
|
-- sam.options.lua
|
||||||
vim.opt.number = true -- Absolute numbers on all lines
|
vim.opt.number = true -- Absolute numbers on all lines
|
||||||
vim.opt.relativenumber = true -- Relative numbers (hybrid when both enabled)
|
vim.opt.relativenumber = true -- Relative numbers (hybrid when both enabled)
|
||||||
|
|
||||||
|
-- ===================================================================
|
||||||
|
-- Clipboard Settings (Added)
|
||||||
|
-- ===================================================================
|
||||||
|
|
||||||
|
-- Sync with system clipboard
|
||||||
|
vim.opt.clipboard = "unnamedplus"
|
||||||
|
|
||||||
|
-- OSC 52 Support for SSH (Copy from Remote Nvim -> Local Computer)
|
||||||
|
if vim.env.SSH_TTY then
|
||||||
|
vim.g.clipboard = {
|
||||||
|
name = 'OSC 52',
|
||||||
|
copy = {
|
||||||
|
['+'] = require('vim.ui.clipboard.osc52').copy('+'),
|
||||||
|
['*'] = require('vim.ui.clipboard.osc52').copy('*'),
|
||||||
|
},
|
||||||
|
paste = {
|
||||||
|
['+'] = require('vim.ui.clipboard.osc52').paste('+'),
|
||||||
|
['*'] = require('vim.ui.clipboard.osc52').paste('*'),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
-- ===================================================================
|
||||||
|
-- Search Settings
|
||||||
|
-- ===================================================================
|
||||||
|
|
||||||
|
vim.opt.hlsearch = true -- Highlight all matches on search
|
||||||
|
vim.opt.incsearch = true -- Show search results incrementally as you type
|
||||||
|
vim.opt.ignorecase = true -- Ignore case in search patterns
|
||||||
|
vim.opt.smartcase = true -- Override ignorecase if search pattern contains uppercase letters
|
||||||
|
|
||||||
|
-- ===================================================================
|
||||||
|
-- Essential Keybindings
|
||||||
|
-- ===================================================================
|
||||||
|
|
||||||
|
-- Set a timeout for which-key to respond (in milliseconds)
|
||||||
|
vim.opt.timeoutlen = 300
|
||||||
|
|
||||||
|
-- A helper function to make setting keymaps easier
|
||||||
|
local keymap = function(mode, lhs, rhs, opts)
|
||||||
|
local options = { noremap = true, silent = true }
|
||||||
|
if opts then
|
||||||
|
options = vim.tbl_extend("force", options, opts)
|
||||||
|
end
|
||||||
|
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("BufWritePost", {
|
||||||
|
group = vim.api.nvim_create_augroup("VimtexCompile", { clear = true }),
|
||||||
|
pattern = "*.tex",
|
||||||
|
callback = function()
|
||||||
|
vim.cmd("VimtexCompile")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- --- General ---
|
||||||
|
-- Save the current file
|
||||||
|
keymap("n", "<leader>w", ":w<CR>", { desc = "Write (Save) File" })
|
||||||
|
|
||||||
|
-- Quit the current buffer/window
|
||||||
|
keymap("n", "<leader>q", ":q<CR>", { desc = "Quit Window" })
|
||||||
|
|
||||||
|
-- --- Window Management (Splits) ---
|
||||||
|
-- Split window vertically
|
||||||
|
keymap("n", "<leader>sv", "<C-w>v", { desc = "Split Vertically" })
|
||||||
|
|
||||||
|
-- Split window horizontally
|
||||||
|
keymap("n", "<leader>sh", "<C-w>s", { desc = "Split Horizontally" })
|
||||||
|
|
||||||
|
-- --- Navigation Between Splits ---
|
||||||
|
-- Move to the window below/above/left/right
|
||||||
|
keymap("n", "<C-j>", "<C-w>j", { desc = "Move to Window Below" })
|
||||||
|
keymap("n", "<C-k>", "<C-w>k", { desc = "Move to Window Above" })
|
||||||
|
keymap("n", "<C-h>", "<C-w>h", { desc = "Move to Window Left" })
|
||||||
|
keymap("n", "<C-l>", "<C-w>l", { desc = "Move to Window Right" })
|
||||||
|
|
||||||
|
-- --- Buffer Navigation ---
|
||||||
|
-- Go to the next buffer
|
||||||
|
keymap("n", "<S-l>", ":bnext<CR>", { desc = "Next Buffer" })
|
||||||
|
|
||||||
|
-- Go to the previous buffer
|
||||||
|
keymap("n", "<S-h>", ":bprevious<CR>", { desc = "Previous Buffer" })
|
||||||
|
vim.keymap.set({'n', 'i', 'v'}, '<F14>', '<C-V>', { desc = 'Enter Visual Block' })
|
||||||
|
vim.keymap.set({'n', 'i'}, '<F15>', 'V', { desc = 'Enter Visual Line' })
|
||||||
|
|||||||
70
nvim/lua/sam/plugins/avante.lua
Normal file
70
nvim/lua/sam/plugins/avante.lua
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
return {
|
||||||
|
"yetone/avante.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"stevearc/dressing.nvim",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
"folke/which-key.nvim", -- For keymaps
|
||||||
|
},
|
||||||
|
event = "VeryLazy",
|
||||||
|
config = function()
|
||||||
|
require("avante").setup({
|
||||||
|
provider = "openai",
|
||||||
|
providers = {
|
||||||
|
openai = {
|
||||||
|
api_key_name = "OPENAI_API_KEY",
|
||||||
|
endpoint = "https://api.openai.com/v1",
|
||||||
|
model = "gpt-4o-mini", -- Your paid model
|
||||||
|
timeout = 30000,
|
||||||
|
extra_request_body = {
|
||||||
|
temperature = 0.1,
|
||||||
|
max_completion_tokens = 8192,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
behaviour = {
|
||||||
|
auto_suggestions = true, -- Inline completion
|
||||||
|
auto_set_highlight_group = true, -- Hints on hover
|
||||||
|
auto_apply_diff_after_generation = false, -- No auto-insert
|
||||||
|
},
|
||||||
|
mappings = {
|
||||||
|
normal = {
|
||||||
|
["gq"] = "AvanteAsk",
|
||||||
|
},
|
||||||
|
insert = {
|
||||||
|
["<C-g>"] = "AvanteToggleAutoSuggestions",
|
||||||
|
},
|
||||||
|
visual = {
|
||||||
|
["gq"] = "AvanteAsk",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
hints = { enabled = true },
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Your keymap style
|
||||||
|
local keymap = function(mode, lhs, rhs, opts)
|
||||||
|
local options = { noremap = true, silent = true }
|
||||||
|
if opts then options = vim.tbl_extend("force", options, opts) end
|
||||||
|
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
||||||
|
end
|
||||||
|
|
||||||
|
keymap("n", "<leader>ai", ":AvanteAsk<CR>", { desc = "Avante Chat" })
|
||||||
|
keymap("v", "<leader>ae", ":<C-U>AvanteAsk explain simply<CR>", { desc = "Explain Selected" })
|
||||||
|
keymap("v", "<leader>af", ":<C-U>AvanteAsk fix: optimize<CR>", { desc = "Fix Selected" })
|
||||||
|
keymap("i", "<C-Space>", "<cmd>AvanteToggleAutoSuggestions<CR>", { desc = "Toggle Inline" })
|
||||||
|
|
||||||
|
-- Which-key
|
||||||
|
vim.schedule(function()
|
||||||
|
local status_ok, wk = pcall(require, "which-key")
|
||||||
|
if status_ok then
|
||||||
|
wk.add({
|
||||||
|
{ "<leader>a", group = "AI (Avante)" },
|
||||||
|
{ "<leader>ai", "<cmd>AvanteAsk<CR>", desc = "Open Chat", mode = "n" },
|
||||||
|
{ "<leader>ae", desc = "Explain Selected", mode = "v" },
|
||||||
|
{ "<leader>af", desc = "Fix Selected", mode = "v" },
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end,
|
||||||
|
}
|
||||||
@ -10,6 +10,11 @@ return {
|
|||||||
-- ADD THIS LINE to load the new extension
|
-- ADD THIS LINE to load the new extension
|
||||||
require("telescope").load_extension("themes")
|
require("telescope").load_extension("themes")
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>f", builtin.find_files, { desc = "Find files" })
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>ff", builtin.find_files, { desc = "Find files" })
|
||||||
|
vim.keymap.set("n", "<leader>fg", builtin.live_grep, { desc = "Live grep" })
|
||||||
|
|
||||||
-- ADD THIS LINE to create the new keymap
|
-- ADD THIS LINE to create the new keymap
|
||||||
vim.keymap.set("n", "<leader>th", "<cmd>Telescope themes<cr>", { desc = "Switch Theme" })
|
vim.keymap.set("n", "<leader>th", "<cmd>Telescope themes<cr>", { desc = "Switch Theme" })
|
||||||
end,
|
end,
|
||||||
|
|||||||
15
nvim/lua/sam/plugins/vimtex.lua
Normal file
15
nvim/lua/sam/plugins/vimtex.lua
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
-- In your plugins configuration file
|
||||||
|
return {
|
||||||
|
-- ... other plugins
|
||||||
|
|
||||||
|
{
|
||||||
|
"lervag/vimtex",
|
||||||
|
lazy = false, -- Or ft = "tex" to load it only for tex files
|
||||||
|
config = function()
|
||||||
|
-- Use Zathura as the PDF viewer
|
||||||
|
vim.g.vimtex_view_method = "zathura"
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- ... other plugins
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user