Skip to content

Instantly share code, notes, and snippets.

View cassiorsfreitas's full-sized avatar

Cássio Freitas cassiorsfreitas

View GitHub Profile
@cassiorsfreitas
cassiorsfreitas / keybindings.json
Last active November 11, 2024 17:27
vscode nvim keybindings
[
// WINDOW NAVIGATION
{
"key": "ctrl+h",
"command": "workbench.action.navigateLeft",
"when": "vim.active && vim.mode != 'Insert'"
},
{
"key": "ctrl+l",
"command": "workbench.action.navigateRight",
[alias]
s = !git status -s
c = !git add --all && git commit -m
l = !git log --pretty=format:'%C(cyan)%h%C(blue)%d %C(yellow)%s - %C(white)%cn, %cr'
which = !git branch | grep -i # quick grep to find by ticket number
lucky = !sh -c 'git checkout $(git which $1 -m1)' - # checkout by ticket number
@cassiorsfreitas
cassiorsfreitas / pojo.js
Last active June 30, 2024 20:22
Conceptual Aside: POJOs
// aside concepts: recursion, declarative/imperative programming, "virtual" dom, and "fake" react engine.
let markup = {
type: "article",
children: [
{
type: "h2",
children: [
{
type: "text",
@cassiorsfreitas
cassiorsfreitas / settings.json
Last active November 11, 2024 17:27
vscode-settings
{
// ---------- VIM ---------- //
"vim.leader": "<Space>",
"vim.foldfix": true,
"vim.useSystemClipboard": true,
"vim.highlightedyank.enable": true,
"vim.highlightedyank.color": "#c203fc",
"vim.hlsearch": true,
"vim.easymotion": true,
"vim.incsearch": true,
@cassiorsfreitas
cassiorsfreitas / mapping.lua
Created January 13, 2024 14:10
astrovim_dotfiles
return {
n = {
["<S-L>"] = {
function() require("astronvim.utils.buffer").nav(vim.v.count > 0 and vim.v.count or 1) end,
desc = "Next buffer",
},
["<S-H>"] = {
function() require("astronvim.utils.buffer").nav(-(vim.v.count > 0 and vim.v.count or 1)) end,
desc = "Previous buffer",
},
@cassiorsfreitas
cassiorsfreitas / tmux.conf
Last active April 20, 2024 10:35
tmux-config
# set -g default-terminal "screen-256color"
set -s default-terminal 'tmux-256color'
set -g prefix C-Space
unbind C-b
bind-key C-Space send-prefix
unbind %
bind | split-window -h