Skip to content

Newbie question about LSP settings -- on_attach #21

@proofer

Description

@proofer

I'd be shocked if this were a real issue; it's posted as a newbie question.

In init.lua there is:

-- LSP settings.
--  This function gets run when an LSP connects to a particular buffer.
local on_attach = function(_, bufnr)
[body of function omitted]

What is it that associates this event handler with LSP? Thanks for any enlightenment...
EDIT (after 3 minutes): Never mind! Thanks for not sending out a posse.

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