Skip to content

Commit

Permalink
upgrade elixir-ls
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderio committed Jun 14, 2024
1 parent 4aedfa5 commit 4e604e4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions home/develop/neovim/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,23 @@ require('lspconfig').pylsp.setup({
local elixir = require("elixir")
local elixirls = require("elixir.elixirls")
elixir.setup {
nextls = {
enable = true,
experimental = {
completions = {
enable = true
}
},
capabilities = require('lsp').capabilities(),
on_attach = function(client, bufnr)
vim.keymap.set("n", "<leader>fp", ":ElixirFromPipe<cr>", { buffer = true, noremap = true })
vim.keymap.set("n", "<leader>tp", ":ElixirToPipe<cr>", { buffer = true, noremap = true })
vim.keymap.set("v", "<leader>em", ":ElixirExpandMacro<cr>", { buffer = true, noremap = true })
require('lsp').on_attach(client, bufnr)
end,
},
elixirls = {
tag = "v0.22.0",
capabilities = require('lsp').capabilities(),
on_attach = function(client, bufnr)
vim.keymap.set("n", "<leader>fp", ":ElixirFromPipe<cr>", { buffer = true, noremap = true })
Expand Down

0 comments on commit 4e604e4

Please sign in to comment.