Compare commits

...

3 commits

Author SHA1 Message Date
33e82ac1ac
remove ocaml lsp 2024-11-18 11:41:40 +01:00
c5e0c62ff3
waybar: show cpu clock 2024-11-18 09:35:30 +01:00
14237e56fa
mzte-nv: completely implement :TypstWatch command 2024-11-18 07:55:20 +01:00
5 changed files with 14 additions and 10 deletions

View file

@ -54,7 +54,7 @@ end
:clock {:tooltip-format "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
:format-alt "{:%Y-%m-%d}"}
:cpu {:format (.. (faccumulate [s "" i 0 (- (cg.opt.system :nproc) 1)]
(.. s "{icon" i "}")) " {usage}% ")
(.. s "{icon" i "}")) " {usage}% {avg_frequency}GHz ")
:interval 2
: format-icons}
:memory {:format "{}% "}

View file

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1731655425,
"narHash": "sha256-86Nv++/fLo7odqCHtkjuu0VDpiJ6WYlnkzqcS5QEPxs=",
"lastModified": 1731875774,
"narHash": "sha256-HIl3lTqMVu/RXx9Gav46qai6+OV9Gu3cQFbvZSOvjJI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "91350eb041833e2f37dccd69ff596a1981ebbd33",
"rev": "6c33d760f16f52ffc0dd8538b9239808d96ec699",
"type": "github"
},
"original": {

View file

@ -14,8 +14,14 @@
(.. "typst watch --root " root
" " file " " outfile)
(.. "typst watch " file " "
outfile))})]
(term:toggle)
(vim.uv.spawn :zathura {:args [outfile]}
(fn [code signal] (term:shutdown)))))]
outfile))})
viewer-timer (vim.uv.new_timer)]
(term:open)
(viewer-timer:start 2000 0
(fn []
(viewer-timer:stop)
(viewer-timer:close)
(vim.uv.spawn :zathura {:args [outfile]}
(fn [code signal]
(vim.schedule #(term:shutdown))))))))]
(vim.api.nvim_create_user_command :TypstWatch cb {:nargs 0}))

View file

@ -91,7 +91,6 @@
:telemetry {:enable false}}}})
(setup :nil_ls {:settings {:nil {:formatting {:command [:nixpkgs-fmt]}}}})
(setup :ocamllsp)
(setup :openscad_lsp)
(setup :prosemd_lsp)
(setup :racket_langserver)

View file

@ -53,7 +53,6 @@ let
)
lua-language-server
(flakePkg "github:oxalica/nil")
ocamlPackages.ocaml-lsp
openscad-lsp
(pkgs.rustPlatform.buildRustPackage {
name = "prosemd-lsp";