31 lines
918 B
Lua
31 lines
918 B
Lua
return {
|
|
'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,
|
|
settings = elixirls.settings {
|
|
dialyzerEnabled = false,
|
|
enableTestLenses = false,
|
|
},
|
|
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',
|
|
},
|
|
}
|