Add this file as a custom plugin:
-- ./lua/plugins/nu-lsp.lua
vim.filetype.add({
extension = {
nu = "nu",| // Simple Lisp Parser | |
| // ========================== | |
| // | |
| // Accepts expressions like "(* 2 (+ 3 4))" and computes their value. | |
| { | |
| // This initializer block allows us to define a variables object | |
| //const variables = options; | |
| const variables = { | |
| users: 2, |
| <?php | |
| if ( realpath( $argv[0] ) == realpath( __FILE__ ) ) { | |
| if ( ! isset( $argv[1] ) || $argv[1] == 'help' || $argv[1] == '--help' || $argv[1] == '-h' ) { | |
| die( "Usage: | |
| phpquery URL --method1 arg1 arg2 argN --method2 arg1 arg2 argN ... | |
| Example: | |
| phpquery 'http://localhost' --find 'div > p' --contents | |
| Pipe: | |
| cat index.html | phpquery --find 'div > p' --contents | |
| Docs: |
| node_modules |
| node_modules | |
| config.json |
| #!/bin/bash | |
| source $(dirname "${BASH_SOURCE[0]}")/crawler | |
| if [[ -n $1 ]]; then | |
| GLOB=("$@") | |
| fi | |
| SED='sed' | |
| if [[ "$(uname)" == "Darwin" ]]; then | |
| SED='gsed'; |