You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The minimal setup will configure both ElixirLS and credo-langauge-server.
64
+
62
65
```lua
63
66
require("elixir").setup()
64
67
```
65
68
69
+
ElixirLS and credo-language-server can be disabled by setting the `enabled` flag in the respective options table.
70
+
71
+
```lua
72
+
require("elixir").setup({
73
+
credo= {enable=false},
74
+
elixirls= {enable=false},
75
+
})
76
+
```
77
+
66
78
### Advanced Setup
67
79
68
80
While the plugin works with a minimal setup, it is much more useful if you add some personal configuration.
69
81
70
-
Note: Not specifying the `repo`, `branch`, or `tag` options will default to the latest release.
82
+
Note: For ElixirLS, not specifying the `repo`, `branch`, or `tag` options will default to the latest release.
71
83
72
84
```lua
73
85
localelixir=require("elixir")
74
86
localelixirls=require("elixir.elixirls")
75
87
76
88
elixir.setup {
89
+
credo= {
90
+
cmd="path/to/credo-language-server",
91
+
on_attach=function(client, bufnr)
92
+
-- custom keybinds
93
+
end
94
+
},
77
95
elixirls= {
78
96
-- specify a repository and branch
79
97
repo="mhanberg/elixir-ls", -- defaults to elixir-lsp/elixir-ls
@@ -124,15 +142,15 @@ elixir.setup {
124
142
125
143
## Features
126
144
127
-
### Language Server
145
+
### ElixirLS
128
146
129
-
#### Automatic ElixirLS Installation
147
+
#### Automatic Installation
130
148
131
149
When a compatible installation of ELixirLS is not found, you will be prompted to install it. The plugin will download the source code to the `.elixir_ls` directory and compile it using the Elixir and OTP versions used by your current project.
132
150
133
151
Caveat: This assumes you are developing your project locally (outside of something like Docker) and they will be available.
134
152
135
-
Caveat: This currently downloads the language server into the `.elixir_ls` directory in your repository, but it does install it into `~/.cache` and will re-use it when needed.
153
+
Caveat: This currently downloads the language server into the `.elixir_ls` directory in your repository, but it does install it into `~/.cache` and will re-use it when needed.
0 commit comments