Skip to content

Instantly share code, notes, and snippets.

View shorsher's full-sized avatar

Alex Shorsher shorsher

View GitHub Profile
@shorsher
shorsher / init.lua
Last active November 2, 2025 17:20
autocmd for last edit position
-- jump to last edit position on opening file
vim.api.nvim_create_autocmd(
'BufReadPost',
{
pattern = '*',
callback = function(ev)
if vim.fn.line("'\"") > 1 and vim.fn.line("'\"") <= vim.fn.line("$") then
-- except for in git commit messages
-- https://stackoverflow.com/questions/31449496/vim-ignore-specifc-file-in-autocommand
if not vim.fn.expand('%:p'):find('.git', 1, true) then
@shorsher
shorsher / App.js
Created December 7, 2020 17:37
reproducible react-native-maps error
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import {