- https://headfirstgo.com/
- Chapter 2
This file contains 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
-- 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] = { | |
{ |
This file contains 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
[ | |
{ | |
"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" |
This file contains 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
// @ts-nocheck | |
/** @type {import('tailwindcss').Config} */ | |
module.exports = { | |
content: ['./**/*.php', './**/*.html'], | |
theme: { | |
extend: {}, | |
}, | |
plugins: [], | |
} |
This file contains 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
// standard for loop | |
for i := 0; i < 10; i++ { | |
fmt.Println(i) | |
} | |
// while loop | |
j := 0 | |
for j < 10 { | |
fmt.Println(j) |
This file contains 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
{ | |
"arrowParens": "avoid", | |
"bracketSpacing": true, | |
"jsxBracketSameLine": false, | |
"printWidth": 80, | |
"semi": false, | |
"singleQuote": true, | |
"tabWidth": 2, | |
"trailingComma": "es5", | |
"plugins": ["prettier-plugin-tailwindcss"] |
This file contains 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
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", |
This file contains 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
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 }) |
This file contains 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
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 |
NewerOlder