diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-01-12 13:47:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 22:47:34 +0100 |
commit | 77a6049e07d070470d3274348ac61ab9b96cac6f (patch) | |
tree | b607af1c867778af618988ba988403dcef4a2212 /runtime/lua/vim/lsp.lua | |
parent | 953a548454869b8d4d513211fd15c429b4759eae (diff) | |
download | rneovim-77a6049e07d070470d3274348ac61ab9b96cac6f.tar.gz rneovim-77a6049e07d070470d3274348ac61ab9b96cac6f.tar.bz2 rneovim-77a6049e07d070470d3274348ac61ab9b96cac6f.zip |
lsp: fix on_attach signature documentation (#13723)
* trim trailing whitespace from docs
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 0326550245..1a814f5b6c 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -327,8 +327,9 @@ end --- Checks whether a client is stopped. --- Returns: true if the client is fully stopped. --- ---- - on_attach(bufnr) +--- - on_attach(client, bufnr) --- Runs the on_attach function from the client's config if it was defined. +--- Useful for buffer-local setup. --- --- - Members --- - {id} (number): The id allocated to the client. |