Skip to content

Instantly share code, notes, and snippets.

View destinio's full-sized avatar
☯️
Present

Destin Lee destinio

☯️
Present
View GitHub Profile
-- js
require('dap-vscode-js').setup {
-- node_path = "node", -- Path of node executable. Defaults to $NODE_PATH, and then "node"
debugger_path = vim.fn.stdpath 'data' .. '/lazy/vscode-js-debug', -- Path to vscode-js-debug installation.
adapters = { 'chrome', 'pwa-node', 'pwa-chrome', 'pwa-msedge', 'node-terminal', 'pwa-extensionHost', 'node', 'chrome' }, -- which adapters to register in nvim-dap
}
for _, language in ipairs(js_based_languages) do
require('dap').configurations[language] = {
{
@destinio
destinio / tailwind.json
Created February 1, 2024 20:19
All Tailwind CSS links (Updated: 2/1/2024)
[
{
"topic": "Accent Color",
"slug": "accent-color",
"url": "https://tailwindcss.com/docs/accent-color"
},
{
"topic": "Adding Custom Styles",
"slug": "adding-custom-styles",
"url": "https://tailwindcss.com/docs/adding-custom-styles"
@destinio
destinio / tailwind.config.js
Last active January 26, 2024 21:25
Config Files
// @ts-nocheck
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./**/*.php', './**/*.html'],
theme: {
extend: {},
},
plugins: [],
}
@destinio
destinio / loops.go
Created August 4, 2023 13:43
Loops in Go
// standard for loop
for i := 0; i < 10; i++ {
fmt.Println(i)
}
// while loop
j := 0
for j < 10 {
fmt.Println(j)
@destinio
destinio / .prettierrc
Created July 13, 2023 16:55
.prettierrc
{
"arrowParens": "avoid",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"printWidth": 80,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"plugins": ["prettier-plugin-tailwindcss"]
@destinio
destinio / README.md
Last active March 20, 2023 19:32
simple user input
@destinio
destinio / notes.lua
Created February 13, 2023 20:00
Open notes in floating window
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",
@destinio
destinio / script-tips.lua
Created February 12, 2023 18:56
Basic nvim-lua functions and things
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 })
@destinio
destinio / api_nvim.txt
Last active February 12, 2023 20:08
vim.api.nvim_*
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
@destinio
destinio / v_commands.md
Last active February 1, 2023 17:39
Vim commands to remember

Normal

Command Description
<C-t> Open current window in new tab
<C-a> <C-x> inc and dec next number on current line

Insert

Command Description
{registar} Paste from register in insert mode