
# Neovim LSP API Reference This document contains function definitions from Neovim's LSP help docs. Use this as a reference when working with LSP in Neovim Lua. --- ## lsp Functions extracted from `lsp.txt`. ```lua vim.lsp.buf_attach_client({bufnr}, {client_id}) vim.lsp.buf_detach_client({bufnr}, {client_id}) vim.lsp.buf_is_attached({bufnr}, {client_id}) vim.lsp.buf_notify({bufnr}, {method}, {params}) vim.lsp.buf_request_all({bufnr}, {method}, {params}, {handler}) vim.lsp.buf_request_sync({
# Neovim Treesitter API Reference This document contains type stubs and API references for Neovim's treesitter Lua API. Use this as a reference when working with treesitter in Neovim Lua. --- ## tsnode TSNode methods - represents a specific element in a parsed syntax tree. Use these methods to navigate and inspect nodes. ```lua function TSNode:parent() end function TSNode:next_sibling() end function TSNode:prev_sibling() end function TSNode:next_named_sibling() end function TSNode:prev_name
a test v
# Neovim Lua API Reference This document contains type stubs and API references for Neovim's Lua API. Use this as a reference when writing Neovim plugins or configurations in Lua. --- ## api The following are type stubs for all the functions available on `vim.api.*`. Prefer these functions where possible. ```lua vim.api = {} vim.api.nvim__buf_debug_extmarks(buffer, keys, dot) vim.api.nvim__buf_stats(buffer) vim.api.nvim__complete_set(index, opts) vim.api.nvim__get_lib_dir() vim.api.nvim
whenever you write any lua code that is meant to be executed in vim add 1 print statement per line of code describing the next code
# Neovim Diagnostics API Reference This document contains function definitions for Neovim's diagnostics Lua API. Use this as a reference when working with diagnostics in Neovim Lua. --- ## diagnostic vim.diagnostic APIs, types, and helpers. ```lua function get_qf_id_for_title(title) function __newindex(t, name, handler) function __index(t, bufnr) function callback() function to_severity(severity) function severity_predicate(severity) function filter_by_severity(severity, diagnostics) functi
Cloudflare platform docs and references
Cloudflare Hyperdrive connection usage rules
## SolidJS Component Structure ### Rules 1. Every UI component lives in its own file under `src/components/` — one default-exported component per file, named to match the file (e.g. `LeftNav.tsx` exports `LeftNav`). 2. `App.tsx` is strictly a composition root: it imports top-level components, wires up resources/signals, and returns a shallow JSX tree. No markup beyond layout wrappers and `<Show>`/`<Switch>` control flow belongs here. 3. Co-locate a component's CSS in a file alongside it (`Comp
## hyperdrive-drizzle ### Rules 1. Create the Postgres/Drizzle client inside each Worker invocation (`fetch`, `queue`, `scheduled`, or Durable Object method) using `env.HYPERDRIVE.connectionString`; never create global pools or long-lived shared clients. 2. Migrations must ALWAYS run through Drizzle (`drizzle-kit generate`, `drizzle-kit migrate`, or project `bun run db:*` scripts); never hand-roll migration SQL or apply schema changes manually. 3. Keep schema and migrations in lockstep: change
## Planning * whenever you plan a new feature you must include how you will test it * test creation should happen before the feature is created, prove that it fails, and then creation of the feature should make the test pass * tests should encompass UI behavior via playwrite. Every test should be e2e.
# Neovim Lua API Reference This document contains type stubs and API references for Neovim's Lua API. Use this as a reference when writing Neovim plugins or configurations in Lua. --- ## api The following are type stubs for all the functions available on `vim.api.*`. Prefer these functions where possible. ```lua vim.api = {} vim.api.nvim__buf_debug_extmarks(buffer, keys, dot) vim.api.nvim__buf_stats(buffer) vim.api.nvim__complete_set(index, opts) vim.api.nvim__get_lib_dir() vim.api.nvim
# Neovim Diagnostics API Reference This document contains function definitions for Neovim's diagnostics Lua API. Use this as a reference when working with diagnostics in Neovim Lua. --- ## diagnostic vim.diagnostic APIs, types, and helpers. ```lua function get_qf_id_for_title(title) function __newindex(t, name, handler) function __index(t, bufnr) function callback() function to_severity(severity) function severity_predicate(severity) function filter_by_severity(severity, diagnostics) functi
## better-auth-social-login ### Goal Implement Better Auth social login (OAuth/OIDC) with Drizzle and drizzle-kit using a secure, migration-safe workflow, including cookie/JWT hardening and exact auth table expectations. ### Rules 1. Configure providers under `socialProviders` with valid OAuth credentials and provider redirect URIs that exactly match your Better Auth callback route. 2. Set a correct `baseURL` (or `BETTER_AUTH_URL`) for each environment; callback mismatch is the most common soc
# Neovim Treesitter API Reference This document contains type stubs and API references for Neovim's treesitter Lua API. Use this as a reference when working with treesitter in Neovim Lua. --- ## tsnode TSNode methods - represents a specific element in a parsed syntax tree. Use these methods to navigate and inspect nodes. ```lua function TSNode:parent() end function TSNode:next_sibling() end function TSNode:prev_sibling() end function TSNode:next_named_sibling() end function TSNode:prev_name
Cloudflare Assets binding usage rules
Cloudflare Hono TypeScript project rules
Cloudflare R2 bucket binding usage rules
## drizzle-migration ### Rules 1. Set up Drizzle scripts up front and use them as the only migration entrypoints: `bun run db:generate`, `bun run db:migrate:local`, and `bun run db:migrate:remote`. 2. Migration generation and schema syncing must always be Drizzle-driven: update schema files, generate with Drizzle, and apply with Drizzle; never hand-roll SQL migration files and never run out-of-band schema changes. 3. Follow a safe rollout flow: apply `bun run db:migrate:local` first, validate l
# OAuth Implementation Checklist Better Auth + Drizzle + Hono + Cloudflare Worker. Every step is a checkbox. Do not skip any. Do them in order. --- ## 1. Rules - [ ] Never write auth SQL by hand - [ ] Always generate auth schema with Better Auth CLI first - [ ] Always generate SQL migrations with Drizzle Kit second - [ ] Always apply migrations with Drizzle Kit third - [ ] Keep local DB URL in `.dev.local` as `LOCAL_DATABASE_URL` (single source of truth) - [ ] Keep `dev`, `drizzle.config.ts`
When performing a code review you need to look for unfinished parts of the application. * If there are TODOs within the diff (not just present, only if it has been added in this git diff) then call that out.
Tmux-based dev.sh script conventions
# Neovim LSP API Reference This document contains function definitions from Neovim's LSP help docs. Use this as a reference when working with LSP in Neovim Lua. --- ## lsp Functions extracted from `lsp.txt`. ```lua vim.lsp.buf_attach_client({bufnr}, {client_id}) vim.lsp.buf_detach_client({bufnr}, {client_id}) vim.lsp.buf_is_attached({bufnr}, {client_id}) vim.lsp.buf_notify({bufnr}, {method}, {params}) vim.lsp.buf_request_all({bufnr}, {method}, {params}, {handler}) vim.lsp.buf_request_sync({
PlanetScale Docs - Categorized Links Source: https://planetscale.com/docs/llms.txt Total unique docs links: 444 ## Basic Usage (37) - [PlanetScale Model Context Protocol (MCP)](https://planetscale.com/docs/connect/mcp.md) - [PlanetScale documentation](https://planetscale.com/docs/index.md) - [Connections overview](https://planetscale.com/docs/postgres/connecting.md) - [IP restrictions](https://planetscale.com/docs/postgres/connecting/ip-restrictions.md) - [Using the Neon serverless driver](http
## better-auth-drizzle-init ### Goal Set up Better Auth with Drizzle ORM and drizzle-kit using a migration-safe, team-friendly workflow. ### Rules 1. Use the Drizzle adapter in Better Auth and set `provider` to one of `"pg"`, `"mysql"`, or `"sqlite"`. 2. Keep the Better Auth config in a CLI-discoverable path (`./auth.ts`, `./lib/auth.ts`, `./utils/auth.ts`, or equivalents under `src/`) or always pass `--config` to Better Auth CLI. 3. For Drizzle projects, do not use `@better-auth/cli migrate`;