summaryrefslogtreecommitdiff
path: root/custom-vars.el
diff options
context:
space:
mode:
authorcashmere <social@cashmere.rs>2026-06-17 18:02:19 +0200
committercashmere <social@cashmere.rs>2026-06-17 18:02:19 +0200
commitd22d0d53b18bd9d349f477eb0ab5fad192af1a84 (patch)
treede2cdb3183ed22ab7bfcdd95fb3de2f6dd00c9bd /custom-vars.el
parent23df9f84ccfdac6821449450401f91f00bafdb98 (diff)
downloademacs-d22d0d53b18bd9d349f477eb0ab5fad192af1a84.tar.gz
config: replace punch-line with svg-line mode-line
Use the svg-line fork (git.cashmere.rs, feat/tty-kitty-modeline) for the mode-line; segments (modal/evil, buffer, vc, weather, battery, position, major-mode) come from svg-line-segments in the fork, so the config just defines and activates the bar and sets the weather coordinates.
Diffstat (limited to 'custom-vars.el')
-rw-r--r--custom-vars.el21
1 files changed, 20 insertions, 1 deletions
diff --git a/custom-vars.el b/custom-vars.el
index ce3e826..578163e 100644
--- a/custom-vars.el
+++ b/custom-vars.el
@@ -17,7 +17,26 @@
nushell-ts-mode offlineimap org-modern pdf-tools
ultra-scroll))
'(safe-local-variable-values
- '((eglot-server-programs
+ '((eval let ((host (car (split-string (system-name) "\\."))))
+ (setq-local eglot-workspace-configuration
+ `(:nixd
+ (:nixpkgs
+ (:expr
+ ,(format
+ "(import ./.).nixosConfigurations.%s.pkgs"
+ host))
+ :formatting (:command ["nixfmt"]) :options
+ (:nixos
+ (:expr
+ ,(format
+ "(import ./.).nixosConfigurations.%s.options"
+ host))
+ :home-manager
+ (:expr
+ ,(format
+ "(import ./.).nixosConfigurations.%s.options.home-manager.users.type.getSubOptions []"
+ host)))))))
+ (eglot-server-programs
((python-ts-mode python-mode) "rass" "--" "ty" "server" "--"
"ruff" "server"))
(eglot-server-programs (nix-mode "devenv" "lsp"))