Skip to content

Fix vscodium shell to work like nvim shell. #665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sterlind
Copy link

Unlike the nvim shell, the vscodium shell didn't specify any nixd server settings, so the example flake.nix didn't work. Fixed this by:

  • Pulling vscodium's user settings.json into a separate file, and filling it with the same contents as the config elaborated in nvim-lsp.nix.

  • Moved dev shell generation in the nixd repo's flake.nix to a common mkDevShell function for both nvim and vscodium (since the settings.json is sepecific to the hardcoded /tmp/NixOS_Home-Manager path.)

Ideally we'd read the nixd server settings from the same file for both nvim and vscodium, but I don't know Lua so I didn't want to touch it.

Unlike the nvim shell, the vscodium shell didn't specify any nixd server
settings, so the example `flake.nix` didn't work. Fixed this by:

- Pulling vscodium's user settings.json into a separate file, and
  filling it with the same contents as the config elaborated in nvim-lsp.nix.

- Moved dev shell generation in the nixd repo's `flake.nix` to a common
  `mkDevShell` function for both nvim and vscodium (since the
  `settings.json` is sepecific to the hardcoded
  `/tmp/NixOS_Home-Manager` path.)

Ideally we'd read the nixd server settings from the same file for both
nvim and vscodium, but I don't know Lua so I didn't want to touch it.
@sterlind sterlind requested a review from inclyc April 11, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants