Skip to content

devcontainer will not start when I open a go file locally in my project file #2

Description

@alfrye

Description
I have a go project where I am trying to replicate my workflow from vscode. The project has .devcontainer folder in the project root.
I have all my go tooling being installed in the Dockerfile that is referenced in my devcontainer.json file.

I am trying to configure my local nvim in a way that when I open *.go file locally and the devcontainer cli will start the container and I will have lsp integration.

I am using nvim nightly with the nvim.lsp-config plugin installed. here is my lspconfig.lua file config

Expected Behavior
When I open a go file in my project the plugin will call devcontainer cli to start the devcontainer with lsp support.

Actual Behavior
When I open a project file nothing seems to happen.

I have seen the devcontainer get created when I open a lua file in my project folder, however I think this works because my locak neovim configuration has the lua language server installed locally.

I am not sure what I am missing with my setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions