.config/nvim/after/ftplugin/elixir.lua

changeset 1172
e9fe1489c0a6
parent 1169
db64f7947671
equal deleted inserted replaced
1171:12363689e67e 1172:e9fe1489c0a6
4 -- of there. it's not clear to me how nvim-dap would handle an adapter's 4 -- of there. it's not clear to me how nvim-dap would handle an adapter's
5 -- definition changing, so i wouldn't expect this to work well with more than 5 -- definition changing, so i wouldn't expect this to work well with more than
6 -- one version in the same nvim session. 6 -- one version in the same nvim session.
7 7
8 local function find_elixir_lsp_dap_cmd(bufnr) 8 local function find_elixir_lsp_dap_cmd(bufnr)
9 -- deprecated 0.10.0: s/get_active_clients/get_clients/; s/idname/name/ 9 local elixir_lsp = vim.lsp.get_clients({
10 local elixir_lsp = vim.lsp.get_active_clients({ 10 name = "ElixirLS",
11 idname = "ElixirLS",
12 bufnr = bufnr or vim.api.nvim_get_current_buf(), 11 bufnr = bufnr or vim.api.nvim_get_current_buf(),
13 })[1] 12 })[1]
14 13
15 if elixir_lsp then 14 if elixir_lsp then
16 local elixir_lsp_cmd = elixir_lsp.config.cmd[1] 15 local elixir_lsp_cmd = elixir_lsp.config.cmd[1]

mercurial