This commit is contained in:
2026-05-01 15:04:27 -06:00
parent 50ac93c727
commit 3c40029892
6 changed files with 36 additions and 17 deletions

View File

@@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.kerbal-space-program;
in {
options.sydnix.kerbal-space-program = {
enable = lib.mkEnableOption "KSPslop";
};
config = lib.mkIf cfg.enable {
home.packages = [ pkgs.ckan ];
};
}

View File

@@ -62,6 +62,7 @@
syd/wgrep
syd/nix
syd/backup
syd/flycheck
syd/agda
syd/eshell
syd/treesit

View File

@@ -25,6 +25,7 @@
(defun syd-haskell-hoogle-start-server ()
(interactive)
(require 'haskell-hoogle)
(haskell-hoogle-start-server)
(browse-url-xdg-open (format "http://localhost:%d"
haskell-hoogle-port-number))

View File

@@ -39,8 +39,12 @@
:select nil :size 0.42 :popup t :align bottom))
(defun syd-lsp-handle-docs ()
(interactive)
(lsp-describe-thing-at-point)
(get-buffer "*lsp-help*"))
(save-excursion
(when evil-mode (forward-char)) ; evil-mode cope
(lsp-describe-thing-at-point))
(with-current-buffer (get-buffer "*lsp-help*")
(and (not (string-empty-p (string-trim (buffer-string))))
(current-buffer))))
(syd-handle 'lsp-mode
:docs #'syd-lsp-handle-docs))