fix nvim 0.10 deprecation / make required

Wed, 22 May 2024 18:46:44 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 22 May 2024 18:46:44 -0500
changeset 1172
e9fe1489c0a6
parent 1171
12363689e67e
child 1173
79c1553aa040

fix nvim 0.10 deprecation / make required

.config/nvim/after/ftplugin/elixir.lua file | annotate | diff | comparison | revisions
--- a/.config/nvim/after/ftplugin/elixir.lua
+++ b/.config/nvim/after/ftplugin/elixir.lua
@@ -6,9 +6,8 @@
 -- one version in the same nvim session.
 
 local function find_elixir_lsp_dap_cmd(bufnr)
-  -- deprecated 0.10.0: s/get_active_clients/get_clients/; s/idname/name/
-  local elixir_lsp = vim.lsp.get_active_clients({
-    idname = "ElixirLS",
+  local elixir_lsp = vim.lsp.get_clients({
+    name = "ElixirLS",
     bufnr = bufnr or vim.api.nvim_get_current_buf(),
   })[1]
 

mercurial