18
18
## Features
19
19
20
20
- [ Next LS] ( https://github.com/elixir-tools/next-ls ) installation and configuration.
21
- - [ Credo Language Server] ( https://github.com/elixir-tools/credo-language-server ) installation and configuration.
22
21
- [ ElixirLS] ( https://github.com/elixir-lsp/elixir-ls ) installation and configuration.
23
22
- ` :Mix ` command with autocomplete
24
23
- [ vim-projectionist] ( https://github.com/tpope/vim-projectionist ) support
@@ -40,7 +39,6 @@ Requires 0.8
40
39
41
40
elixir .setup {
42
41
nextls = {enable = true },
43
- credo = {},
44
42
elixirls = {
45
43
enable = true ,
46
44
settings = elixirls .settings {
@@ -71,20 +69,19 @@ use({ "elixir-tools/elixir-tools.nvim", tag = "stable", requires = { "nvim-lua/p
71
69
72
70
## Minimal Setup
73
71
74
- The minimal setup will configure both ElixirLS and credo-language-server .
72
+ The minimal setup will configure both ElixirLS but not Next LS .
75
73
76
74
``` lua
77
75
require (" elixir" ).setup ()
78
76
```
79
77
80
- Next LS, ElixirLS, and Credo Language Server can be enabled/disabled by setting the ` enable ` flag in the respective options table.
78
+ Next LS and ElixirLS can be enabled/disabled by setting the ` enable ` flag in the respective options table.
81
79
82
80
The defaults are shown below.
83
81
84
82
``` lua
85
83
require (" elixir" ).setup ({
86
84
nextls = {enable = false },
87
- credo = {enable = true },
88
85
elixirls = {enable = true },
89
86
})
90
87
```
@@ -118,15 +115,7 @@ elixir.setup {
118
115
-- custom keybinds
119
116
end
120
117
},
121
- credo = {
122
- enable = true , -- defaults to true
123
- port = 9000 , -- connect via TCP with the given port. mutually exclusive with `cmd`. defaults to nil
124
- cmd = " path/to/credo-language-server" , -- path to the executable. mutually exclusive with `port`
125
- version = " 0.1.0-rc.3" , -- version of credo-language-server to install and use. defaults to the latest release
126
- on_attach = function (client , bufnr )
127
- -- custom keybinds
128
- end
129
- },
118
+ ,
130
119
elixirls = {
131
120
-- specify a repository and branch
132
121
repo = " mhanberg/elixir-ls" , -- defaults to elixir-lsp/elixir-ls
@@ -197,18 +186,6 @@ and it will not prompt you to install and use it from there.
197
186
198
187
Next LS command are available as subcommands of the ` :Elixir ` command
199
188
200
- ## Credo Language Server
201
-
202
- > ** Note**
203
- > Credo Language Server integration utilizes ` Mix.install/2 ` , so you must be running Elixir >= 1.12
204
-
205
- > ** Note**
206
- > Credo Language Server creates a ` .elixir-tools ` directory in your project root. You'll want to add that to your gitignore.
207
-
208
- - Uses your project's Credo version.
209
- - Full project diagnostics
210
- - Code Actions
211
-
212
189
## ElixirLS
213
190
214
191
### Automatic Installation
0 commit comments