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
[ERROR][2024-11-14 15:18:26] ...lsp/handlers.lua:590 'disconnected /Users/tjdevries/git/topshelf.fm: | |
/----------------------------------------------------------------------- | |
| Internal error: Uncaught exception. | |
| Unix.Unix_error(Unix.ENOENT, "create_process", "ocamlmerlin-mlx") | |
| Raised by primitive operation at Unix.create_process_gen.(fun) in file "unix.ml", line 922, characters 15-68 | |
| Called from Stdlib__Fun.protect in file "fun.ml", line 34, characters 8-15 | |
| Re-raised at Stdlib__Fun.protect in file "fun.ml", line 39, characters 6-52 | |
| Called from Unix.create_process in file "unix.ml" (inlined), line 925, characters 2-66 | |
| Called from Merlin_extend__Extend_driver.run in file "src/extend/extend_driver.ml", line 25, characters 4-79 | |
| Called from Merlin_kernel__Mreader_extend.start in file "src/kernel/mreader_extend.ml", line 50, characters 15-52 |
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
<div className="min-h-screen bg-black text-green-400 font-mono" /> | |
(* can we change to *) | |
<div [%tw min-h-screen bg-black text-green-400 font-mono] /> | |
<div.tw ... /> | |
<div className=[%tw ... ] /> | |
<div className%tw="...." /> |
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 ls = require "luasnip" | |
vim.snippet.expand = ls.lsp_expand | |
---@diagnostic disable-next-line: duplicate-set-field | |
vim.snippet.active = function(filter) | |
filter = filter or {} | |
filter.direction = filter.direction or 1 | |
if filter.direction == 1 then |
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
** Conflict (shift/reduce) in state 230. | |
** Token involved: LPAR | |
** This state is reached from prog after reading: | |
varlist1 EQUAL LPAR exp RPAR | |
** The derivations that appear below have the following common factor: | |
** (The question mark symbol (?) represents the spot where the derivations begin to differ.) |
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
// TODOs offstream: | |
// - differences between typedeft shenanigans | |
// Jokes: | |
// - mark-and-sweep you off your feet | |
// For eductional purposes, should we implement | |
// both a mark-and-sweep, as well as a ref-count? | |
#include "garbage.h" |
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
open Base | |
(** Typesafe htmlx wrappers for OCaml. Emits attributes to be used with TyXML *) | |
(** hx-get [url] *) | |
let get url = Tyxml.Html.Unsafe.string_attrib "hx-get" url | |
(** hx-put [url] *) | |
let put url = Tyxml.Html.Unsafe.string_attrib "hx-put" url |
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 myfunc = function(opts) | |
opts = opts or {} | |
opts.bufnr = opts.bufnr or create_my_buffer(...) | |
opts.win = opts.win or creat_my_win(...) | |
-- now do the rest... | |
end |
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
tell me about autocommands | |
Read 11 files | |
Searched entire codebase for relevant files | |
test/functional/autocmd/cmdline_spec.lua | |
test/functional/autocmd/show_spec.lua | |
test/old/testdir/test_cmdline.vim | |
test/functional/autocmd/autocmd_spec.lua | |
test/functional/autocmd/textyankpost_spec.lua |
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
(* create a module hiding implementation of what type the ID is and creating ser/de methods *) | |
module UserID = struct | |
type t = int | |
let t = | |
let encode (t : t) : (int, string) result = Ok t in | |
let decode (t : int) : (t, string) result = Ok t in | |
Caqti_type.(custom ~encode ~decode int) | |
;; |
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
/// Proposed | |
/// A file which may or may not be async | |
struct ?async File { | |
file_descriptor: std::os::RawFd, // shared field in all contexts | |
async waker: Waker, // field only available in async contexts | |
!async meta: Metadata, // field only available in non-async contexts | |
} | |
impl ?async File { |
NewerOlder