lsp.onAttach
Lines of lua to be run when a language server is attached.
tip
The variables client
and bufnr
are made available in scope.
This is a global equivialent to the per-server on_attach
callback,
which can be defined via lsp.servers.<name>.settings.on_attach
.
Unlike the per-server callback, which should be defined as a lua callback function, this option should be defined as the function body.
Type: strings concatenated with ā\nā
Default:
""
Declared by: