Commit 7c376c3
authored
Add additional symbol kinds for
* Add more symbol kinds to current_function
There's little reason not to want to display enums, structs, and
interfaces. They tend to be top-level in languages which define them, so
they aren't competing with anything, like some of the smaller symbol
kinds are.
The updated formatting of the conditions is to keep the line length low.
* Add `module` and `namespace` kinds
These are also generally top-level, and (based on admittedly limited testing)
don't interfere with other kinds.
* Mention included function kinds in docs
This will help people set `kind_labels` by giving them an exhaustive
list of kinds they need to set labels for.
* Extract valid kinds to a module-level array
As suggested by the initial PR review, this significantly improves
readability and maintainability.
* Fix invalid table syntax
Not sure why I thought table keys could be strings.
* Correctly check `v.kind`
(Why you don't commit to a PR branch even for minor things.)current_function (#49)1 parent fc07882 commit 7c376c3
File tree
3 files changed
+16
-2
lines changed- doc
- lua/lsp-status
3 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
12 | 24 | | |
13 | 25 | | |
14 | 26 | | |
| |||
18 | 30 | | |
19 | 31 | | |
20 | 32 | | |
21 | | - | |
| 33 | + | |
22 | 34 | | |
23 | 35 | | |
24 | 36 | | |
| |||
0 commit comments