NeoVIM: add elixir tools plugin config
This commit is contained in:
parent
d5cb1b2e5a
commit
4b18ff453d
1 changed files with 31 additions and 0 deletions
31
Configs/nvim/lua/plugins/elixir-tools.lua
Normal file
31
Configs/nvim/lua/plugins/elixir-tools.lua
Normal file
|
@ -0,0 +1,31 @@
|
|||
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",
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue