PMunch / nimlsp

Language Server Protocol implementation for Nim
MIT License
418 stars 51 forks source link

Support hierarchical document outline via `DocumentSymbol` #174

Open ire4ever1190 opened 11 months ago

ire4ever1190 commented 11 months ago

This uses DocumentSymbol if the client supports it which allows enum/type fields to be shown

proc test() = discard

type
  Something = object
    hello*: tuple[name: string]
  Test = enum
    Colour

Produces

image