|
47 | 47 |
|
48 | 48 | (defcustom-lsp lsp-haskell-formatting-provider
|
49 | 49 | "ormolu"
|
50 |
| - "The formatter to use when formatting a document or range. Ensure the plugin is enabled." |
| 50 | + "The formatter to use when formatting a document or range. |
| 51 | +Ensure the plugin is enabled." |
51 | 52 | :group 'lsp-haskell
|
52 | 53 | :type '(choice (const "brittany") (const "floskell") (const "fourmolu") (const "ormolu") (const "stylish-haskell") (const "none"))
|
53 | 54 | :lsp-path "haskell.formattingProvider")
|
54 | 55 | (defcustom-lsp lsp-haskell-check-project
|
55 | 56 | t
|
56 |
| - "Whether to typecheck the entire project on load. It could lead to bad perfomance in large projects." |
| 57 | + "Whether to typecheck the entire project on load. |
| 58 | +It could lead to bad perfomance in large projects." |
57 | 59 | :group 'lsp-haskell
|
58 | 60 | :type 'boolean
|
59 | 61 | :lsp-path "haskell.checkProject")
|
|
150 | 152 | :lsp-path "haskell.plugin.tactics.globalOn")
|
151 | 153 | (defcustom-lsp lsp-haskell-plugin-tactics-config-auto-gas
|
152 | 154 | 4
|
153 |
| - "The depth of the search tree when performing \"Attempt to fill hole\". Bigger values will be able to derive more solutions, but will take exponentially more time." |
| 155 | + "The depth of the search tree when performing \"Attempt to fill hole\". |
| 156 | +Bigger values will be able to derive more solutions, |
| 157 | +but will take exponentially more time." |
154 | 158 | :group 'lsp-haskell-plugins
|
155 | 159 | :type 'number
|
156 | 160 | :lsp-path "haskell.plugin.tactics.config.auto_gas")
|
|
221 | 225 | :type 'boolean
|
222 | 226 | :lsp-path "haskell.plugin.refineImports.globalOn")
|
223 | 227 |
|
| 228 | +;; Updated for haskell-language-server 2.1.0.0 |
| 229 | + |
| 230 | +(lsp-defcustom lsp-haskell-plugin-cabal-code-actions-on t |
| 231 | + "Enables cabal code actions" |
| 232 | + :type 'boolean |
| 233 | + :group 'lsp-haskell |
| 234 | + :package-version '(lsp-mode . "8.0.1") |
| 235 | + :lsp-path "haskell.plugin.cabal.codeActionsOn") |
| 236 | + |
| 237 | +(lsp-defcustom lsp-haskell-plugin-overloaded-record-dot-global-on t |
| 238 | + "Enables overloaded-record-dot plugin" |
| 239 | + :type 'boolean |
| 240 | + :group 'lsp-haskell |
| 241 | + :package-version '(lsp-mode . "8.0.1") |
| 242 | + :lsp-path "haskell.plugin.overloaded-record-dot.globalOn") |
| 243 | + |
| 244 | +(lsp-defcustom lsp-haskell-plugin-pragmas-completion-global-on t |
| 245 | + "Enables pragmas-completion plugin" |
| 246 | + :type 'boolean |
| 247 | + :group 'lsp-haskell |
| 248 | + :package-version '(lsp-mode . "8.0.1") |
| 249 | + :lsp-path "haskell.plugin.pragmas-completion.globalOn") |
| 250 | + |
| 251 | +(lsp-defcustom lsp-haskell-plugin-pragmas-disable-global-on t |
| 252 | + "Enables pragmas-disable plugin" |
| 253 | + :type 'boolean |
| 254 | + :group 'lsp-haskell |
| 255 | + :package-version '(lsp-mode . "8.0.1") |
| 256 | + :lsp-path "haskell.plugin.pragmas-disable.globalOn") |
| 257 | + |
| 258 | +(lsp-defcustom lsp-haskell-plugin-pragmas-suggest-global-on t |
| 259 | + "Enables pragmas-suggest plugin" |
| 260 | + :type 'boolean |
| 261 | + :group 'lsp-haskell |
| 262 | + :package-version '(lsp-mode . "8.0.1") |
| 263 | + :lsp-path "haskell.plugin.pragmas-suggest.globalOn") |
| 264 | + |
224 | 265 | ;; ---------------------------------------------------------------------
|
225 | 266 | ;; Non-language server options
|
226 | 267 |
|
@@ -298,7 +339,7 @@ and `lsp-haskell-server-args' and `lsp-haskell-server-wrapper-function'."
|
298 | 339 | :major-modes '(haskell-mode haskell-literate-mode haskell-tng-mode haskell-cabal-mode)
|
299 | 340 | ;; This is arbitrary.
|
300 | 341 | :server-id 'lsp-haskell
|
301 |
| - ;; HLS does not currently send 'workspace/configuration' on startup (https://github.com/haskell/haskell-language-server/issues/2762), |
| 342 | + ;; HLS does not currently send 'workspace/configuration' on startup (https://github.com/haskell/haskell-language-server/issues/2762), |
302 | 343 | ;; so we need to push the configuration to it manually on startup. We should be able to
|
303 | 344 | ;; get rid of this once the issue is fixed in HLS.
|
304 | 345 | :initialized-fn (lambda (workspace)
|
|
0 commit comments