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
| -- THIS IS DEPRECATED, USE THE FILE BELOW | |
| -- should get bufnr from autocmd or something | |
| -- conceal only accepts one character | |
| -- thanks to u/Rafat913 for many suggestions and tips | |
| local namespace = vim.api.nvim_create_namespace("class_conceal") | |
| local group = vim.api.nvim_create_augroup("class_conceal", { clear = true }) | |
| local conceal_html_class = function(bufnr) |
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
| -- put this file somewhere in your nvim config, like: ~/.config/nvim/lua/config/lua-lsp.lua | |
| -- usage: require'lspconfig'.sumneko_lua.setup(require("config.lua-lsp")) | |
| local library = {} | |
| local path = vim.split(package.path, ";") | |
| -- this is the ONLY correct way to setup your path | |
| table.insert(path, "lua/?.lua") | |
| table.insert(path, "lua/?/init.lua") |
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
| { | |
| "*.tsx": { | |
| "alternate": "{dirname}/__tests__/{basename}.test.tsx", | |
| "type": "source", | |
| "template": [ | |
| "import type {open} FC {close} from 'react';", | |
| "", | |
| "type {basename|camelcase|capitalize}Props = {open}", | |
| " property?: unknown;", | |
| "{close};", |
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
| # This is a basic workflow to help you get started with Actions | |
| name: CD Internal-Lane | |
| # Controls when the action will run. Triggers the workflow on push or pull request | |
| # events but only for the master branch | |
| on: | |
| push: | |
| tags: | |
| - "internal-v*.*.*" # on every version tag will build a new android artifact example: v3.1.2+6 | |
| jobs: |
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
| #!/usr/bin/lua5.1 | |
| --- Async/Await for Lua 5.1 | |
| -- This script implements async/await functions for Lua, allowing tasks to | |
| -- be queued and scheduled independently. | |
| -- | |
| -- This is just an example and has a bunch of issues, isn't tested, isn't | |
| -- even actually used anywhere; I basically just got bored and had one of | |
| -- those "what if?" type ideas 6 hours ago. | |
| local co_create = coroutine.create |
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
| # Example of two-line ZSH prompt with four components. | |
| # | |
| # top-left top-right | |
| # bottom-left bottom-right | |
| # | |
| # Components can be customized by editing set-prompt function. | |
| # | |
| # Installation: | |
| # | |
| # (cd && curl -fsSLO https://gist.github.com/romkatv/2a107ef9314f0d5f76563725b42f7cab/raw/two-line-prompt.zsh) |
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
| #!/bin/sh | |
| # To use add to `.git/hooks/` | |
| # Should be named `pre-push` | |
| # Make executable with `chmod +x` | |
| # stash any unstaged changes | |
| git stash -q --keep-index | |
| # run Flutter analyze + test | |
| flutter analyze |
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
| " Use a bunch of standard UNIX commands for quick an dirty | |
| " whitespace-based alignment | |
| function! Align() | |
| '<,'>!column -t|sed 's/ \(\S\)/ \1/g' | |
| normal gv= | |
| endfunction | |
| xnoremap <silent> <key> :<C-u>silent call Align()<CR> |
NewerOlder
