fix: nix-shell LSP
This commit is contained in:
parent
0e15adaa6c
commit
724162277c
|
@ -4,11 +4,14 @@ pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
cargo
|
cargo
|
||||||
clippy
|
clippy
|
||||||
rustfmt
|
|
||||||
rust-analyzer
|
|
||||||
pagefind
|
|
||||||
esbuild
|
esbuild
|
||||||
nodePackages.pnpm
|
nodePackages.pnpm
|
||||||
|
pagefind
|
||||||
python3
|
python3
|
||||||
|
rust-analyzer
|
||||||
|
rustc
|
||||||
|
rustfmt
|
||||||
];
|
];
|
||||||
|
|
||||||
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,7 +106,7 @@ impl Content for md::Slide {
|
||||||
content: T,
|
content: T,
|
||||||
_: Outline,
|
_: Outline,
|
||||||
_: &'s Sack,
|
_: &'s Sack,
|
||||||
bib: Option<Vec<String>>,
|
_bib: Option<Vec<String>>,
|
||||||
) -> impl Renderable + 'html
|
) -> impl Renderable + 'html
|
||||||
where
|
where
|
||||||
'f: 'html,
|
'f: 'html,
|
||||||
|
|
|
@ -33,7 +33,7 @@ static KATEX_B: Lazy<katex::Opts> = Lazy::new(||
|
||||||
.unwrap()
|
.unwrap()
|
||||||
);
|
);
|
||||||
|
|
||||||
static LOCALE: Lazy<Vec<Locale>> = Lazy::new(|| hayagriva::archive::locales());
|
static LOCALE: Lazy<Vec<Locale>> = Lazy::new(hayagriva::archive::locales);
|
||||||
|
|
||||||
static STYLE: Lazy<IndependentStyle> = Lazy::new(||
|
static STYLE: Lazy<IndependentStyle> = Lazy::new(||
|
||||||
match ArchivedStyle::InstituteOfPhysicsNumeric.get() {
|
match ArchivedStyle::InstituteOfPhysicsNumeric.get() {
|
||||||
|
@ -203,6 +203,7 @@ fn set_heading_ids(events: &mut [Event]) -> Outline {
|
||||||
Outline(out)
|
Outline(out)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn make_math(event: Event) -> Event {
|
fn make_math(event: Event) -> Event {
|
||||||
match event {
|
match event {
|
||||||
Event::InlineMath(math) => Event::InlineHtml(katex::render_with_opts(&math, &*KATEX_I).unwrap().into()),
|
Event::InlineMath(math) => Event::InlineHtml(katex::render_with_opts(&math, &*KATEX_I).unwrap().into()),
|
||||||
|
|
|
@ -82,7 +82,7 @@ pub fn watch() -> Result<()> {
|
||||||
let thread_i = new_thread_ws_incoming(server, client.clone());
|
let thread_i = new_thread_ws_incoming(server, client.clone());
|
||||||
let (tx_reload, thread_o) = new_thread_ws_reload(client.clone());
|
let (tx_reload, thread_o) = new_thread_ws_reload(client.clone());
|
||||||
|
|
||||||
while let Ok(ev) = rx.recv().unwrap() {
|
while let Ok(_ev) = rx.recv().unwrap() {
|
||||||
build_styles();
|
build_styles();
|
||||||
tx_reload.send(()).unwrap();
|
tx_reload.send(()).unwrap();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue