Inspired By:
https://github.com/neovim/neovim/wiki/Installing-Neovim#macos--os-x
{ | |
// "_ a": { "prefix": "_ a", "body": [""], "description": "a" }, | |
// "_ b": { "prefix": "_ b", "body": [""], "description": "b" }, | |
// "_ c": { "prefix": "_ c", "body": [""], "description": "c" }, | |
// "_ d": { "prefix": "_ d", "body": [""], "description": "d" }, | |
// "_ e": { "prefix": "_ e", "body": [""], "description": "e" }, | |
// "_ f": { "prefix": "_ f", "body": [""], "description": "f" }, | |
// "_ g": { "prefix": "_ g", "body": [""], "description": "g" }, | |
// "_ h": { "prefix": "_ h", "body": [""], "description": "h" }, | |
// "_ i": { "prefix": "_ i", "body": [""], "description": "i" }, |
alias ll='ls -al' | |
alias ld='ls -alt' | |
alias c='code .' | |
alias ll='ls -al' | |
alias ld='ls -alt' | |
alias c='code .' | |
alias cd..='cd ..' | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias cd!='cd !$' |
package main | |
import ( | |
"github.com/gin-gonic/gin" | |
) | |
func main() { | |
router := gin.Default() | |
router.GET("/", func(c *gin.Context) { |
import { BaseSyntheticEvent, useEffect, useState } from 'react' | |
interface Todo { | |
userId: number | |
id: number | |
title: string | |
completed: boolean | |
} | |
function Home() { |
The following is an easy to read list of https://neovim.io/doc/user/api.html#api-global | |
_buf_redraw_range | |
_buf_stats | |
_get_hl_defs | |
_get_lib_dir | |
_get_runtime | |
_id | |
_id_array | |
_id_dictionary |
function Pr(...) | |
print(vim.inspect(...)) | |
end | |
vim.api.nvim_create_user_command("LRun", function() | |
vim.cmd("write | so %") | |
end, {}) | |
vim.keymap.set("n", "lr", ":LRun<cr>", { silent = true }) |
local api = vim.api | |
local h = api.nvim_list_uis()[1].height | |
local w = api.nvim_list_uis()[1].width | |
local width = math.floor(api.nvim_win_get_width(0) / 2) | |
local height = math.floor(api.nvim_win_get_height(0) / 2) | |
local buf = api.nvim_create_buf(false, true) | |
api.nvim_open_win(buf, true, { | |
relative = "editor", |