[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode aaf7c55 370/385: support for hsinspect-ls
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode aaf7c55 370/385: support for hsinspect-lsp |
Date: |
Wed, 6 Oct 2021 00:00:06 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit aaf7c5560d8590fa240748bda0ae7539d8a0804f
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
support for hsinspect-lsp
---
Cask | 1 +
haskell-tng-extra-lsp-hsinspect.el | 33 +++++++++++++++++++++++++++++++++
haskell-tng-extra-stack.el | 3 ++-
3 files changed, 36 insertions(+), 1 deletion(-)
diff --git a/Cask b/Cask
index 80cad22..f42d10e 100644
--- a/Cask
+++ b/Cask
@@ -29,6 +29,7 @@
;;(depends-on "elsa") ;; cask exec elsa FILE
(depends-on "faceup") ;; no stable release
(depends-on "ert-runner" "0.7.0")
+ (depends-on "lsp-mode" "6.3.1")
(depends-on "shut-up" "0.3.2")
(depends-on "projectile" "2.1.0")
(depends-on "smartparens" "1.11.0")
diff --git a/haskell-tng-extra-lsp-hsinspect.el
b/haskell-tng-extra-lsp-hsinspect.el
new file mode 100644
index 0000000..78bbead
--- /dev/null
+++ b/haskell-tng-extra-lsp-hsinspect.el
@@ -0,0 +1,33 @@
+;;; haskell-tng-extra-lsp-hsinspect.el --- support for hsinspect-lsp -*-
lexical-binding: t -*-
+
+;; Copyright (C) 2020 Tseen She
+;; License: GPL 3 or any later version
+
+;;; Commentary:
+;;
+;; This is only for developing and testing the `hsinspect-lsp' binary:
+;; `haskell-tng-hsinspect' is a far superior way for users to interact with
+;; `hsinspect'.
+;;
+;;; Code:
+
+(require 'lsp-mode)
+(require 'subr-x)
+
+(defcustom haskell-tng-lsp-hsinspect '("hsinspect-lsp")
+ "The command and args to launch the hsinspect language server."
+ :group 'haskell-tng
+ :type 'listp)
+
+(lsp-register-client
+ (make-lsp-client :new-connection (lsp-stdio-connection
+ (lambda () (string-join
haskell-tng-lsp-hsinspect " ")))
+ :major-modes '(haskell-tng-mode)
+ :server-id 'hsinspect-lsp))
+
+(add-to-list
+ 'lsp-language-id-configuration
+ '(haskell-tng-mode . "haskell"))
+
+(provide 'haskell-tng-extra-lsp-hsinspect)
+;;; haskell-tng-extra-lsp-hsinspect.el ends here
diff --git a/haskell-tng-extra-stack.el b/haskell-tng-extra-stack.el
index 84dc218..50a4adb 100644
--- a/haskell-tng-extra-stack.el
+++ b/haskell-tng-extra-stack.el
@@ -18,7 +18,8 @@
;; https://stackoverflow.com/questions/58923819
haskell-tng--hsinspect-which-hsinspect "stack build --silent hsinspect &&
stack exec --silent which -- hsinspect"
haskell-tng--compile-history '("stack build --fast --no-interleaved-output
--ghc-options=\"-j\" --no-run-tests"
- "stack build --fast --no-interleaved-output
--ghc-options=\"-j\""))
+ "stack build --fast --no-interleaved-output
--ghc-options=\"-j\"")
+ haskell-tng-lsp-hsinspect '("hsinspect-lsp" "--stack"))
(setq-default
haskell-tng--compile-alt "stack clean"
- [nongnu] elpa/haskell-tng-mode 2d50a06 358/385: enable CI, (continued)
- [nongnu] elpa/haskell-tng-mode 2d50a06 358/385: enable CI, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 923fa9e 344/385: bugfixes in jump-to-definition, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3939303 334/385: importing from the hsinspect index will update the buffer cache, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3ea52c1 341/385: special case jumping to inplace packages, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4217d98 378/385: fixup! third party tools use project specific PATH, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f7f0e0f 383/385: moar extras, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 2017d07 384/385: widen hsinspect range, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 083e80a 110/385: assert on alternative indentation order, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ec1ac46 361/385: document a bug, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4b598b2 377/385: third party tools use project specific PATH, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode aaf7c55 370/385: support for hsinspect-lsp,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode b3e6c9a 113/385: compilation mode regression tests vs haskell-mode, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 99a7f10 337/385: cleanup, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e6d8761 343/385: local jump-to-definition should error, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode c31afdb 272/385: missing CPP case, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 85c4dd5 233/385: fix bugfix in goto-import, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5c157fb 255/385: rigid ormolu support, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 64ec84d 260/385: if/then/else indentation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 1d53572 243/385: bugfixes, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode d1e599a 285/385: switch formatting backend based on project config, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode fd06b8f 264/385: move haskell-tng-newline into the -extra package, ELPA Syncer, 2021/10/06