Skip to content

Module variables assigned function values do not appear in document symbols #935

@ibhagwan

Description

@ibhagwan

Tried 0.19.0 and 0.20.0 compiled from source (877c38d).

Use the below code:

local function func1() end
local func2 = function() end
local M = {}
function M.func3() end
M.func4 = function() end

and run a textDocument/documentSymbol (in neovim run : lua vim.lsp.buf.document_symbol()):

Image

Shouldn’t M.func4 be listed in the output as a function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions