mirror of
https://github.com/haskell/ghcide.git
synced 2024-09-11 13:57:06 +03:00
Add configuration example for SpaceVim (#184)
...using its default configuration layers
This commit is contained in:
parent
0f25910d09
commit
19c4a6b38f
45
README.md
45
README.md
@ -182,6 +182,51 @@ Add this to your coc-settings.json (which you can edit with :CocConfig):
|
||||
Here's a nice article on setting up neovim and coc: [Vim and Haskell in
|
||||
2019](http://marco-lopes.com/articles/Vim-and-Haskell-in-2019/)
|
||||
|
||||
### SpaceVim
|
||||
|
||||
In the `autocomplete` layer, add the `autocomplete_method` option to force the use of `coc`:
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = 'autocomplete'
|
||||
auto-completion-return-key-behavior = "complete"
|
||||
auto-completion-tab-key-behavior = "smart"
|
||||
[options]
|
||||
autocomplete_method = "coc"
|
||||
```
|
||||
|
||||
Add this to your coc-settings.json (which you can edit with :CocConfig):
|
||||
|
||||
```json
|
||||
{
|
||||
"languageserver": {
|
||||
"haskell": {
|
||||
"command": "stack",
|
||||
"args": [
|
||||
"exec",
|
||||
"ghcide",
|
||||
"--lsp"
|
||||
],
|
||||
"rootPatterns": [
|
||||
".stack.yaml",
|
||||
".hie-bios",
|
||||
"BUILD.bazel",
|
||||
"cabal.config",
|
||||
"package.yaml"
|
||||
],
|
||||
"filetypes": [
|
||||
"hs",
|
||||
"lhs",
|
||||
"haskell"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
This example above describes a setup in which `ghcide` is installed
|
||||
using `stack install ghcide` within a project.
|
||||
|
||||
## Hacking on ghcide
|
||||
|
||||
To build and work on `ghcide` itself, you can use Stack or cabal, e.g.,
|
||||
|
Loading…
Reference in New Issue
Block a user