Skip to content

Only attaches to first Elixir buffer when starting NeoVim from a session #241

@cvincent

Description

@cvincent

Like the title says. Using ElixirLS, and Lazy.

When starting from a session file, e.g. nvim -S Session.vim, only the first buffer my cursor is in has the LSP attached. Moving to other buffers that were already opened by the session does not cause the LSP to attach, as confirmed by running :LspInfo in those buffers. This was not the case when I was just using nvim-lspconfig. The ElixirExpandMacro and other commands are also not set, so the elixir-tools.nvim autocommand is just not being run at all.

I can force the autocommand to run in these buffers with :edit!. But it would be nice for the LSP to attach to all of my session's buffers automatically, as it did when I was just using lspconfig.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions