This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| * | |
| * @format | |
| * @flow strict-local | |
| */ | |
| import React from 'react'; | |
| import { |