Wed, 22 May 2024 18:46:44 -0500
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]