Skip to content

Commit 5e46093

Browse files
committed
lazy.nvim instructions
1 parent 5b4df26 commit 5e46093

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,38 @@
1414

1515
Requires 0.8.
1616

17+
### lazy.nvim
18+
19+
```lua
20+
{
21+
"mhanberg/elixir.nvim",
22+
ft = { "elixir", "eex", "heex", "surface" },
23+
config = function()
24+
local elixir = require("elixir")
25+
26+
elixir.setup {
27+
settings = elixirls.settings {
28+
dialyzerEnabled = false,
29+
enableTestLenses = false,
30+
},
31+
log_level = vim.lsp.protocol.MessageType.Log,
32+
message_level = vim.lsp.protocol.MessageType.Log,
33+
on_attach = function(client, bufnr)
34+
-- whatever keybinds you want, see below for more suggestions
35+
vim.keymap.set("n", "<space>fp", ":ElixirFromPipe<cr>", { buffer = true, noremap = true })
36+
vim.keymap.set("n", "<space>tp", ":ElixirToPipe<cr>", { buffer = true, noremap = true })
37+
vim.keymap.set("v", "<space>em", ":ElixirExpandMacro<cr>", { buffer = true, noremap = true })
38+
end,
39+
}
40+
end,
41+
dependencies = {
42+
"nvim-lua/plenary.nvim",
43+
},
44+
}
45+
```
46+
47+
### packer.nvim
48+
1749
```lua
1850
use({ "mhanberg/elixir.nvim", requires = { "nvim-lua/plenary.nvim" }})
1951
```

0 commit comments

Comments
 (0)