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

changeset 1169
db64f7947671
parent 1165
840f0fde07e2
child 1172
e9fe1489c0a6
equal deleted inserted replaced
1168:52750027eff6 1169:db64f7947671
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

mercurial