This file contains hidden or 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
| [ERROR][2025-11-26 10:50:25] ...p/_transport.lua:36 "rpc" "astro-ls" "stderr" 'reducted/.local/share/nvim/mason/pac | |
| kages/astro-language-server/node_modules/@astrojs/language-server/node_modules/vscode-languageserver-types/lib/umd/main.js:93\n | |
| throw new Error("Range#create called with invalid arguments[".concat(one, ", ").concat(two, ", ").concat(three, ", ").concat(fo | |
| ur, "]"));\n ^\n\nError: Range#create called with invalid arguments[[object Object], [object Object], undefined, u | |
| ndefined]\n at Object.create (reducted/.local/share/nvim/mason/packages/astro-language-server/node_modules/@astrojs/language-serve | |
| r/node_modules/vscode-languageserver-types/lib/umd/main.js:93:23)\n at shiftRange (reducted/.local/share/nvim/mason/packages/astro | |
| -language-server/node_modules/@astrojs/language-server/node_modules/vscode-html-languageservice/lib/umd/services/pathCompletion.js:138: | |
| 42)\n at pathToReplaceRange (reducted/.local/share/nvim/mason/packages/astr |
This file contains hidden or 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
| declare global { | |
| namespace NodeJS { | |
| interface Process { | |
| emit(event: "prexit", error?: Error): boolean; | |
| } | |
| } | |
| } | |
| export type PrexitSignal = | |
| | "exit" |
This file contains hidden or 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
| vim.api.nvim_create_autocmd({ "TextYankPost" }, { | |
| pattern = "term://*", | |
| callback = function() | |
| local width = vim.api.nvim_win_get_width(0) - 2 | |
| local offset = vim.api.nvim_win_get_cursor(0)[2] | |
| local yanked_text = vim.fn.getreg("+") | |
| local new_str = "" | |
| local count = 1 | |
| while true do | |
| local next_index = string.find(yanked_text, "\n", count) |
This file contains hidden or 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
| htmx.defineExtension("hx-astro-view-transition", { | |
| onEvent: function (name, evt: any) { | |
| if (name === "htmx:afterRequest") { | |
| const attributes = evt.target.attributes; | |
| const viewTransitionTarget = | |
| attributes["hx-view-transition"]?.value; | |
| if (!viewTransitionTarget) { | |
| console.log(evt); | |
| return; | |
| } |
This file contains hidden or 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
| import * as fs from "fs"; | |
| import * as glob from "glob"; | |
| const routes = glob.globSync("**/app/**/route.ts", {}); | |
| const constDef: string[] = []; | |
| const typeDef: string[] = []; | |
| const routeTypes: string[] = []; | |
| function toConstDef(varName: string, path: string): string { |