Skip to content

Instantly share code, notes, and snippets.

View unrealapex's full-sized avatar
🏳️‍⚧️
trans rights are human rights!

Erin unrealapex

🏳️‍⚧️
trans rights are human rights!
View GitHub Profile
@MariaSolOs
MariaSolOs / builtin-compl.lua
Last active December 3, 2025 18:03
Built-in completion + snippet Neovim setup
---Utility for keymap creation.
---@param lhs string
---@param rhs string|function
---@param opts string|table
---@param mode? string|string[]
local function keymap(lhs, rhs, opts, mode)
opts = type(opts) == 'string' and { desc = opts }
or vim.tbl_extend('error', opts --[[@as table]], { buffer = bufnr })
mode = mode or 'n'
vim.keymap.set(mode, lhs, rhs, opts)
@hyperupcall
hyperupcall / settings.jsonc
Last active December 9, 2025 18:42
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@gsuuon
gsuuon / colors.lua
Last active January 3, 2025 03:01
My styled wezterm config - just the relevant bits
local wezterm = require 'wezterm'
local color_default_fg_light = wezterm.color.parse("#cacaca") -- 💩
local color_default_fg_dark = wezterm.color.parse("#303030")
return {
VERIDIAN = {
bg = wezterm.color.parse("#4D8060"),
fg = color_default_fg_light
},
@romainl
romainl / vanilla-surround.md
Last active November 10, 2025 00:29
Poor man's Surround

Poor man's Surround

The following shows how to replicate some of Surround's features if you don't happen to have it installed.

NOTE: We only dealt with the simplest cases, here, and the convoluted nature of some of these commands shows how well designed and useful that plugin is. And let's not talk about all the corner cases it handles.

Install it, it's worth it.

The list

@bashbunni
bashbunni / .zshrc
Last active December 4, 2025 17:32
CLI Pomodoro for Linux (zsh)
# study stream aliases
# Requires https://github.com/caarlos0/timer to be installed. spd-say should ship with your distro
declare -A pomo_options
pomo_options["work"]="45"
pomo_options["break"]="10"
pomodoro () {
if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then
val=$1
@echasnovski
echasnovski / neovim-survey-summary_00_description.md
Last active May 22, 2023 17:28
Results of Neovim built-in options survey

This Gist contains results of Neovim built-in options survey. Users were asked to execute certain script (see 'neovim-survey_script.lua') and upload text it produced (comma-separated table of all options which differ from default, plus neovim version and leader key).

There were total 227 legible answers provided for period from 2022-11-22 to 2022-12-08.

Here is a link to Reddit announcement

File description:

@mengwangk
mengwangk / java.lua
Created May 28, 2022 14:49
Neovim for Beginners - Java
local jdtls_ok, jdtls = pcall(require, "jdtls")
if not jdtls_ok then
vim.notify "JDTLS not found, install with `:LspInstall jdtls`"
return
end
-- Installation location of jdtls by nvim-lsp-installer
local JDTLS_LOCATION = vim.fn.stdpath "data" .. "/lsp_servers/jdtls"
-- Data directory - change it to your liking
<head>
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- jQuery ui -->
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
</head>
@mengwangk
mengwangk / keymaps.lua
Created February 19, 2022 06:37
Neovim for Beginners - Debugging using DAP
local M = {}
local whichkey = require "which-key"
-- local function keymap(lhs, rhs, desc)
-- vim.keymap.set("n", lhs, rhs, { silent = true, desc = desc })
-- end
function M.setup()
local keymap = {
@VonHeikemen
VonHeikemen / better-netrw.vim
Last active May 14, 2025 14:57
Making a more intuitive netrw
" Open Netrw on the directory of the current file
nnoremap <leader>dd :Lexplore %:p:h<CR>
" Toggle the Netrw window
nnoremap <Leader>da :Lexplore<CR>
if &columns < 90
" If the screen is small, occupy half
let g:netrw_winsize = 50
else