diff --git a/lib/next_ls/helpers/ast_helpers/variables.ex b/lib/next_ls/helpers/ast_helpers/variables.ex index 9e2b8b43..6fff47cd 100644 --- a/lib/next_ls/helpers/ast_helpers/variables.ex +++ b/lib/next_ls/helpers/ast_helpers/variables.ex @@ -219,7 +219,7 @@ defmodule NextLS.ASTHelpers.Variables do end defp decrease_scope_nesting(acc) do - Map.update!(acc, :scope, &tl(&1)) + Map.update!(acc, :scope, &List.delete_at(&1, 0)) end # add new symbol with scope