diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2024-03-06 12:15:25 +0000 |
|---|---|---|
| committer | Lewis Russell <me@lewisr.dev> | 2024-03-06 16:03:33 +0000 |
| commit | 85b13751a5fc28fadbe74d72982325ca27b4c775 (patch) | |
| tree | 0690fe4c552acfd03a69466b85bd7eda50509474 /runtime/lua/vim/lsp/buf.lua | |
| parent | 3c572a31a3bb7009b4ad8eac56da1458acae3b75 (diff) | |
| download | rneovim-85b13751a5fc28fadbe74d72982325ca27b4c775.tar.gz rneovim-85b13751a5fc28fadbe74d72982325ca27b4c775.tar.bz2 rneovim-85b13751a5fc28fadbe74d72982325ca27b4c775.zip | |
refactor(types): more fixes (2)
Diffstat (limited to 'runtime/lua/vim/lsp/buf.lua')
| -rw-r--r-- | runtime/lua/vim/lsp/buf.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua index 377c8680c7..fd78a10672 100644 --- a/runtime/lua/vim/lsp/buf.lua +++ b/runtime/lua/vim/lsp/buf.lua @@ -248,6 +248,9 @@ function M.format(options) vim.notify('[LSP] Format request failed, no matching language servers.') end + --- @param client vim.lsp.Client + --- @param params lsp.DocumentFormattingParams + --- @return lsp.DocumentFormattingParams local function set_range(client, params) if range then local range_params = @@ -294,6 +297,9 @@ end --- Restrict clients used for rename to ones where client.name matches --- this field. --- @field name? string +--- +--- (default: current buffer) +--- @field bufnr? integer --- Renames all references to the symbol under the cursor. --- @@ -786,6 +792,7 @@ function M.code_action(options) options = options or {} -- Detect old API call code_action(context) which should now be -- code_action({ context = context} ) + --- @diagnostic disable-next-line:undefined-field if options.diagnostics or options.only then options = { options = options } end |