nvim-lua / lsp-status.nvim

Utility functions for getting diagnostic status and progress messages from LSP servers, for use in the Neovim statusline
MIT License
628 stars 40 forks source link

Potentially fix #24 by checking the result type before processing #25

Closed wbthomason closed 3 years ago

wbthomason commented 3 years ago

extract_symbols passes its argument to ipairs, so we check if result (passed to extract_symbols) is a table before calling extract_symbols. This should have the effect of only updating the current function when we've gotten a valid value from the server.