Skip to content

Instantly share code, notes, and snippets.

@rotemgrim
rotemgrim / my-lazyvim-plugins.lua
Created October 28, 2024 16:36
Custom Neovim plugins for LayVim
return {
{
"LazyVim/LazyVim",
opts = {
colorscheme = "catppuccin-mocha",
},
},
{
"mg979/vim-visual-multi",
@rotemgrim
rotemgrim / install-neovim.ps1
Last active October 27, 2024 14:27
Install Neovim on windows
# requires: choco, winget, nodejs and git
# you can copy paste into terminal (powershell)
# Install Chocolatey if it's not already installed
if (-Not (Get-Command choco -ErrorAction SilentlyContinue)) {
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}
@rotemgrim
rotemgrim / arch-setup.sh
Last active July 14, 2024 11:29
Arch Install
#!/bin/bash
# Update and upgrade the system
sudo pacman -Syu --noconfirm
# Install essential development tools
sudo pacman -S --noconfirm --needed base-devel
# Install common utilities
sudo pacman -S --noconfirm base-devel procps-ng curl file git make luarocks
#Requires AutoHotkey >=2.0
#HotIf !ModifierPressed()
CapsLock::Return
CapsLock & j::sendKeyWithModifiers("Left")
CapsLock & k::sendKeyWithModifiers("Down")
CapsLock & l::sendKeyWithModifiers("Right")
CapsLock & i::sendKeyWithModifiers("Up")
CapsLock & h::sendKeyWithModifiers("Home")
@rotemgrim
rotemgrim / .ideavim
Last active October 7, 2024 21:06
.ideavim
" Plugins
set surround
set highlightedyank
set NERDTree
set multiple-cursors
" set commentary
set easymotion
set vim-paragraph-motion
set textobj-indent
set textobj-entire
@rotemgrim
rotemgrim / NerdFonts.sh
Created November 5, 2023 16:14
Nerd fonts
# install nerd fonts:
declare -a fonts=(
# BitstreamVeraSansMono
# CodeNewRoman
# DroidSansMono
FiraCode
FiraMono
# Go-Mono
# Hack
# Hermit
@rotemgrim
rotemgrim / Installation.sh
Last active July 15, 2024 19:23
Fedora Setup
# install general stuff
sudo dnf update -y &&
sudo dnf upgrade -y &&
sudo dnf install -y make automake gcc gcc-c++ &&
sudo dnf install -y curl dnsutils git make htop &&
sudo dnf install -y lsb-release net-tools &&
sudo dnf install -y sudo unzip vim neovim wget zsh openssl openssh-server &&
sudo dnf install -y autojump-zsh powerline fonts-powerline
sudo dnf install -y fd-find ripgrep lolcat &&
sudo dnf install -y rust cargo python pip &&