lualine.nvim icon indicating copy to clipboard operation
lualine.nvim copied to clipboard

Add typings for LSP

Open WhyNotHugo opened this issue 3 years ago • 4 comments

With these changes, lua-language-server will show type hints for the config and all its fields.

This is strongly based on the typings provided by @zorgick in #563. I omitted the defaults. When putting the typing defitions together with the declaration of the default instance, the LSP will use its values as default values.

Closes: https://github.com/nvim-lualine/lualine.nvim/issues/563 Co-Authored-By: @zorgick

WhyNotHugo avatar Jul 12 '22 10:07 WhyNotHugo

@zorgick: I'm including you as co-author since I mostly copy-pasted your example into the right place. Let me know if you'd rather not be included.

WhyNotHugo avatar Jul 12 '22 10:07 WhyNotHugo

Some of those hints might require update since the issue is quite old . I'll look at it later after I get #736 working properly.

shadmansaleh avatar Jul 12 '22 15:07 shadmansaleh

Can you add support for the newly added options in #736

shadmansaleh avatar Jul 24 '22 07:07 shadmansaleh

Updated and rebased.

WhyNotHugo avatar Jul 24 '22 09:07 WhyNotHugo