mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
feat(elixir): add elixirls code actions (#4148)
This is a refactoring of #3846 with the changes: - Use `Lazyvim.lsp.execute` on keymaps to make everything simpler; - Remove expandMacro. Closes #3846 --------- Co-authored-by: Ahmed Kamal <ahmed@moon-i.com.au>
This commit is contained in:
parent
1c2be200c1
commit
f94a0591b3
1 changed files with 26 additions and 1 deletions
|
@ -9,7 +9,32 @@ return {
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = {
|
||||||
servers = {
|
servers = {
|
||||||
elixirls = {},
|
elixirls = {
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>cp",
|
||||||
|
function()
|
||||||
|
local params = vim.lsp.util.make_position_params()
|
||||||
|
LazyVim.lsp.execute({
|
||||||
|
command = "manipulatePipes:serverid",
|
||||||
|
arguments = { "toPipe", params.textDocument.uri, params.position.line, params.position.character },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
desc = "To Pipe",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>cP",
|
||||||
|
function()
|
||||||
|
local params = vim.lsp.util.make_position_params()
|
||||||
|
LazyVim.lsp.execute({
|
||||||
|
command = "manipulatePipes:serverid",
|
||||||
|
arguments = { "fromPipe", params.textDocument.uri, params.position.line, params.position.character },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
desc = "From Pipe",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue