Skip to content

Q: How to speed up start? #2640

Open
Open
@loeffel-io

Description

@loeffel-io

This is my neovim setup for my unity project:

            ["omnisharp"] = function()
                lspconfig["omnisharp"].setup({
                    on_attach = on_attach,
                    capabilities = capabilities,
                    cmd = { "omnisharp", "--languageserver", "--hostPID", tostring(pid) },
                    root_dir = lspconfig.util.root_pattern("*.csproj", "*.sln"),
                    handlers = {
                        ["textDocument/definition"] = omnisharp_extended.handler,
                        ["textDocument/references"] = omnisharp_extended.handler,
                        ["textDocument/implementation"] = omnisharp_extended.handler,
                        ["textDocument/typeDefinition"] = omnisharp_extended.handler,
                    },
                    settings = {
                        FormattingOptions = {
                            EnableEditorConfigSupport = true,
                        },
                        RoslynExtensionsOptions = {
                            EnableAnalyzersSupport = false,    -- Disable analyzers for better performance
                            EnableImportCompletion = false,    -- Disable import completion to improve completion time
                            EnableDecompilationSupport = true, -- Enable decompilation support (optional)
                        },
                    },
                })
            end,

it takes around 5 minutes until everything is loaded - this is unacceptable - gopls loads my insane big project instantly.

do i need to exclude some directories or something or is this startup speed normal? If yes, how?

file tree depth 1

├── Assets
├── Library
├── LocalPackages
├── Logs
├── Packages
├── ProjectSettings
├── Temp
├── UserSettings
└── obj

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