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_active_clients({ |
10 local elixir_lsp = vim.lsp.get_active_clients({ |
10 idname = "ElixirLS", |
11 idname = "ElixirLS", |
11 bufnr = bufnr or vim.api.nvim_get_current_buf(), |
12 bufnr = bufnr or vim.api.nvim_get_current_buf(), |
12 })[1] |
13 })[1] |
13 |
14 |