initial commit
This commit is contained in:
36
lua/_elixir.lua
Normal file
36
lua/_elixir.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
plugin({
|
||||
"elixir-tools/elixir-tools.nvim",
|
||||
version = "*",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function()
|
||||
local elixir = require("elixir")
|
||||
local elixirls = require("elixir.elixirls")
|
||||
|
||||
elixir.setup({
|
||||
-- nextls = { enable = true },
|
||||
elixirls = {
|
||||
enable = true,
|
||||
cmd = "elixir-ls",
|
||||
settings = elixirls.settings({
|
||||
dialyzerEnabled = true,
|
||||
enableTestLenses = true,
|
||||
}),
|
||||
on_attach = function(client, bufnr)
|
||||
vim.keymap.set("n", "<space>fp", ":ElixirFromPipe<cr>", { buffer = true, noremap = true })
|
||||
vim.keymap.set("n", "<space>tp", ":ElixirToPipe<cr>", { buffer = true, noremap = true })
|
||||
vim.keymap.set("v", "<space>em", ":ElixirExpandMacro<cr>", { buffer = true, noremap = true })
|
||||
end,
|
||||
},
|
||||
projectionist = {
|
||||
enable = true,
|
||||
},
|
||||
})
|
||||
end,
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
})
|
||||
|
||||
map("n", "<leader>cr", function()
|
||||
vim.lsp.codelens.run()
|
||||
end)
|
||||
Reference in New Issue
Block a user