Skip to content

Commit 95faeeb

Browse files
authored
Add Kakoune section to the README (#592)
* Add kakoune installation instructions * Add additional files to roots field
1 parent 0c9a096 commit 95faeeb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,20 @@ Add this to your coc-settings.json (which you can edit with :CocConfig):
266266
This example above describes a setup in which `ghcide` is installed
267267
using `stack install ghcide` within a project.
268268

269+
### Using with Kakoune
270+
271+
Install [kak-lsp](https://github.com/ul/kak-lsp).
272+
273+
Change `kak-lsp.toml` to include this:
274+
275+
```toml
276+
[language.haskell]
277+
filetypes = ["haskell"]
278+
roots = ["Setup.hs", "stack.yaml", "*.cabal", "cabal.project", "hie.yaml"]
279+
command = "ghcide"
280+
args = ["--lsp"]
281+
```
282+
269283
## Hacking on ghcide
270284

271285
To build and work on `ghcide` itself, you can use Stack or cabal, e.g.,

0 commit comments

Comments
 (0)