Closed rileyshahar closed 3 years ago
Sure, a PR would be great, thank you!
Actually, I think there are some others that might be useful. Maybe this should be configurable? For reference, here's the full list of symbol kinds:
File
Module
Namespace
Package
Class
Method
Property
Field
Constructor
Enum
Interface
Function
Variable
Constant
String
Number
Boolean
Array
Object
Key
Null
EnumMember
Struct
Event
Operator
TypeParameter
I think we want class, method, enum, interface, function, and struct by default, and maybe also module and namespace?
Should I include these in the PR, add a config item, or just add struct like we talked about?
I made some comments on the PR, but I also like the idea of making this list configurable.
Makes sense! I followed up on the comments, I'll maybe write a second PR to make it configurable.
This would be nice for languages without traditional object-orientation; e.g., rust-analyzer defines a
Struct
object kind. Should just be a one-line change here: https://github.com/nvim-lua/lsp-status.nvim/blob/60a3ad9dc2f43e0e512c242411541846a86eb7de/lua/lsp-status/current_function.lua#L21I can submit a PR if you want.