Skip to content

Instantly share code, notes, and snippets.

View phortonssf's full-sized avatar

Peter Horton phortonssf

View GitHub Profile

Integrating git status in lualine

Introduction

This gist shows a possible way how to integrate the status of the buffer related repository into the neovim plugin lualine.

The git status is indicated in the lower left corner of the screenshot, indicating (1 commit ahead, 1 staged, 1 modified and 1 untracked file):

I just started using lua, so the way how the code below works can certainly be improved.

@phortonssf
phortonssf / README.md
Created May 27, 2021 05:07 — forked from ascendbruce/README.md
Use mac style keyboard shortcuts on Windows with AutoHotkey (ahk) script

Use (most) macOS style keyboard shortcuts on Windows

Make Windows PC's shortcut act like macOS (Mac OS X)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

Note that:

  1. you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.
  2. To use cmd + shift + ↑ / ↓ / ← / → (select text between cursor and top / bottom / beginning of line / end of line), You should disable the Between input languages shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys due to conflicting.
@phortonssf
phortonssf / lightline-and-tmux-config.md
Created October 9, 2020 21:33 — forked from sainnhe/lightline-and-tmux-config.md
Sexy & Powerful Configuration for Lightline and Tmux

𝑺𝒆𝒙𝒚 & 𝑷𝒐𝒘𝒆𝒓𝒇𝒖𝒍 𝑪𝒐𝒏𝒇𝒊𝒈𝒖𝒓𝒂𝒕𝒊𝒐𝒏 𝒇𝒐𝒓 𝑳𝒊𝒈𝒉𝒕𝒍𝒊𝒏𝒆 𝒂𝒏𝒅 𝑻𝒎𝒖𝒙

Nerd Font

First of all, install a nerd font, and apply it: nerd font

{
"background" : "#1d2021",
"black" : "#665C54",
"blue" : "#7DAEA3",
"brightBlack" : "#928374",
"brightBlue" : "#7DAEA3",
"brightCyan" : "#89B482",
"brightGreen" : "#A9B665",
"brightPurple" : "#D3869B",
"brightRed" : "#EA6962",
@phortonssf
phortonssf / zsh.md
Last active September 27, 2020 15:45 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
apt-get install git-core
@phortonssf
phortonssf / .hyper.js
Last active August 12, 2020 16:40 — forked from filipelenfers/.hyper.js
Hyper.js using Zsh on Windows with WSL
//I like to use zsh(with oh-my-zsh) as my default shell.
//############## First define your default distro for wsl #######################
// run the following on cmd.exe
// wslconfig /l
// wslconfig /s Ubuntu
//use this options on preferences of Hyper.js termina to use it as default.
{
shell: 'C:\\Windows\\System32\\bash.exe',
@phortonssf
phortonssf / Dockerfile
Created July 29, 2018 18:26 — forked from remarkablemark/Dockerfile
Install node and npm with nvm using Docker.
# set the base image to Debian
# https://hub.docker.com/_/debian/
FROM debian:latest
# replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# update the repository sources list
# and install dependencies
RUN apt-get update \