{"id":13491540,"url":"https://github.com/nicodebo/neovim-docker","last_synced_at":"2025-04-25T14:31:51.549Z","repository":{"id":50630961,"uuid":"126683480","full_name":"nicodebo/neovim-docker","owner":"nicodebo","description":"personal neovim configuration as a Docker image. (I don't use this anymore. Feel free to fork it if you need to)","archived":false,"fork":false,"pushed_at":"2022-04-20T12:57:50.000Z","size":8,"stargazers_count":37,"open_issues_count":1,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T22:36:40.970Z","etag":null,"topics":["docker","neovim"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/nicodebo/neovim-docker/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicodebo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-25T09:46:28.000Z","updated_at":"2024-01-11T19:31:07.000Z","dependencies_parsed_at":"2022-09-13T21:01:15.223Z","dependency_job_id":null,"html_url":"https://github.com/nicodebo/neovim-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicodebo%2Fneovim-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicodebo%2Fneovim-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicodebo%2Fneovim-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicodebo%2Fneovim-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicodebo","download_url":"https://codeload.github.com/nicodebo/neovim-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250834068,"owners_count":21494903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","neovim"],"created_at":"2024-07-31T19:00:57.997Z","updated_at":"2025-04-25T14:31:51.052Z","avatar_url":"https://github.com/nicodebo.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"# Neovim-docker\n\nMy **personal** neovim environment (neovim + tools) as a Docker image\n\n## Why ?\n\n- Keep track of all external tools, specifically installed for neovim (ctags,\n  syntax checkers, language server protocol,…)\n- Keep track of all installed plugins\n- Easily deploy your developement environnement on different machine with\n  docker-hub\n- Safely try new tools (e.g. language server protocol) in the sandbox environment\n\n## Usage\n\n`cd` into your top level project directory, then run the following docker\ncommand:\n\n```\ndocker run \\\n  --rm -it \\\n  [-e UID=\"1000\" \\]\n  [-e GID=\"1000\" \\]\n  [-v \u003cyour init.vim directory\u003e:/home/neovim/.config/nvim \\]\n  -v \u003cyour workspace top level dir\u003e:/mnt/workspace \\\n   nicodebo/neovim-docker:latest \\\n  [nvim arguments]\n```\n\n### Examples\n\n* Open neovim with file1 and file2 stacked horizontally:\n\n```\n\ndocker run \\\n    --rm -it \\\n    -v $(pwd):/mnt/workspace \\\n    nicodebo/neovim-docker:latest \\\n    -o file1 file2\n```\n\n* Open neovim with file1 and use your custom neovim configuration stored in the\n  `.dotfile` directory under your `$HOME`:\n\n```\ndocker run \\\n    --rm -it \\\n    -v $(pwd):/mnt/workspace \\\n    -v $HOME/.dotfiles/nvim:/home/neovim/.config/nvim \\\n    nicodebo/neovim-docker:latest \\\n    file1\n```\n\n* File permission issues may arise if the default `user id (1000)` and `group\n  id (1000)` of the container does not match user id and group id of the host.\n\n```\ndocker run \\\n    --rm -it \\\n    -v $(pwd):/mnt/workspace \\\n    -e UID=\"1003\" \\\n    -e GID=\"1004\" \\\n    nicodebo/neovim-docker:latest \\\n    -o file1 file2\n```\n\nYou can find out your host user id and group id with the following command: `$ id`\n\n## Local runtime/binary\n\nFor conveniance, you might want to define a function in your shell\nconfiguration (bashrc, zshrc,…) to run neovim-docker as an executable, e.g.:\n\n```\nnvim() {\n    docker run \\\n        --rm -it \\\n        -v $(pwd):/mnt/workspace \\\n        -v $HOME/.dotfiles/nvim:/home/neovim/.config/nvim \\\n        nicodebo/neovim-docker:latest \\\n        \"$@\"\n       }\n```\n\n## Limitation\n\nYou must `cd` into the directory (preferably the top level directory of your\nproject) where the files you want to edit are located.\n\n## Related project\n\n* \u003chttps://github.com/bencao/vim_in_docker\u003e\n* \u003chttps://github.com/JAremko/alpine-vim\u003e\n* \u003chttps://github.com/JAremko/docker-emacs\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicodebo%2Fneovim-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicodebo%2Fneovim-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicodebo%2Fneovim-docker/lists"}