diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-08-11 11:58:15 +0100 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-08-11 15:14:14 +0100 |
commit | 9b5ab66678f8efa1f5fe89205839fe053fe5efaf (patch) | |
tree | 14018ce3d9f2f3cde76e65453c201664e5129d8a /runtime/lua/vim/lsp/util.lua | |
parent | 8df6736ca14d09f87cf0a8486758ac5708819434 (diff) | |
download | rneovim-9b5ab66678f8efa1f5fe89205839fe053fe5efaf.tar.gz rneovim-9b5ab66678f8efa1f5fe89205839fe053fe5efaf.tar.bz2 rneovim-9b5ab66678f8efa1f5fe89205839fe053fe5efaf.zip |
test(lsp): refactor and tidy
- Merge all the top level 'LSP' describe blocks
- Refactor text edit tests
- Fix typing errors
- Add linebreaks between tests
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 59ae3beae4..cbbe3a66b7 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -1442,7 +1442,7 @@ end --- Computes size of float needed to show contents (with optional wrapping) --- ---@param contents table of lines to show in window ----@param opts table with optional fields +---@param opts? table with optional fields --- - height of floating window --- - width of floating window --- - wrap_at character to wrap at for computing height @@ -1821,7 +1821,7 @@ end --- Converts symbols to quickfix list items. --- ---@param symbols table DocumentSymbol[] or SymbolInformation[] ----@param bufnr integer +---@param bufnr? integer function M.symbols_to_items(symbols, bufnr) local function _symbols_to_items(_symbols, _items, _bufnr) for _, symbol in ipairs(_symbols) do |