Commit graph

17 commits

Author SHA1 Message Date
siggsy
fdba701b46 languages/haskell: hls-wrapper -> hls
hls-wrapper is a simple script to start the correct language server
based on the currently oppened project. From nvf perspective, this makes
it effectively useless. To allow haskell to work on nvf OOTB, we specify
cmd with hls (not wrapper).

NOTE: this pins the language server to specific GHC version.
To circumvent this, users must override (lib.mkForce)
vim.lsp.servers.haskell-tools.cmd with their own, or just specify it as
[ "haskell-language-server-wrapper" "--lsp" ].
2025-11-08 07:00:58 +01:00
siggsy
1189e78132 Revert "languages/haskell: remove cmd"
This reverts commit 9181d4f34e.
2025-11-08 07:00:58 +01:00
siggsy
e2632059d5 languages/haskell: remove cmd with hls-wrapper
`haskell-language-server-wrapper` only selects the correct
`haskell-language-server`. Snippet from hls documentation:

> HLS is a binary that must be compiled with the same version of
> GHC as the project you are using it on. For this reason it is
> usually distributed as a collection of binaries, along with a
> haskell-language-server-wrapper executable that selects the correct
> one based on which version of GHC it thinks you are using.

By providing `hls-wrapper` we pull A LOT of dependencies,
but do not use them (around 6.7GB). This is unecessary since
we then have to provide `haskell-language-server` in haskell
projects bundled with compatable GHC.
2025-11-08 07:00:58 +01:00
siggsy
43f33b8bdd languages/haskell: remove language server settings
Theses are already provided by `haskell-language-server`.
We also do not prvoide any packages to complement the
specified settings, so it seems unecessary.
2025-11-08 07:00:58 +01:00
siggsy
e814f8e8be languages/haskell: remove invalid vim.g options
Haskell is not configured with lspconfig, but rather
with haskell-tools.nvim. This commit fixes "conversion"
made in 39efdc799.

Without this, users are met with nvim errors about invalid
vim.g options
2025-11-08 06:58:48 +01:00
Gerg-L
3e48f13c3c
lib: rewrite toLuaObject, deprecate everything else (#1178)
* lint: typos

* wrapper/build: passthru mnw stuff

* lib: rewrite toLuaObject, deprecate everything else

* docs: deno fmt

* Emac

---------

Co-authored-by: Ching Pei Yang <59727193+horriblename@users.noreply.github.com>
2025-10-13 18:56:11 +02:00
Ching Pei Yang
c13edf9961
treewide: remove usage of default_on_attach outside LspAttach 2025-09-26 00:29:27 +02:00
poz
7400d6fd48
languages/haskell: add missing comma after hls table 2025-07-21 02:19:52 +02:00
sjcobb
e0cd56f39e ordering of types 2025-07-14 01:15:39 +01:00
sjcobb
abec738d2a hacky but working haskell 2025-06-16 16:41:45 +01:00
sjcobb
e24383e556 update haskell-tools 2025-06-16 15:23:40 +01:00
sjcobb
acf3cca302 use new util 2025-06-15 22:31:43 +01:00
sjcobb
39efdc7990 convert haskell module 2025-06-06 11:01:06 +01:00
1ed6fd9f58
languages: deprecate vim.languages.enableLSP
This change is done in favor of our intentions to use the new API Neovim has exposed, and the one we are exposing to match theirs.
2025-05-04 18:01:46 +03:00
Artur Manuel
ea056532bc
languages/haskell: specify lsp flag (#540)
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Validate flake & check formatting / Validate Flake (push) Waiting to run
Validate flake & check formatting / Formatting via Alejandra (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
Check for typos in the source tree / check-typos (push) Waiting to run
Co-authored-by: Artur Manuel <balkenix@outlook.com>
2025-01-09 15:28:13 +03:00
Artur Manuel
0946d43921 languages/haskell: fix DAP command definition 2024-12-21 01:00:02 +00:00
Artur Manuel
e715463257
plugins/languages: add haskell support (#499)
* plugins/languages: add haskell support

Closes #426

* fix docs

---------

Co-authored-by: Artur Manuel <balkenix@outlook.com>
Co-authored-by: raf <raf@notashelf.dev>
2024-12-20 03:50:38 +00:00