A ready-to-use Nix shell environment with nvim and vscodium editors. Includes:
nvim: Stylish Vim IDE with pluginscodium: Visual Studio Code with extensions
The version of nixpkgs can be changed in the default.nix or
flake.nix files whichever you use.
There are two ways to start the nix shell.
To get a shell with the development environment installed in it, use the following command:
nix-shell https://github.com/composewell/nixpack-editors/archive/master.tar.gz
You can clone the nixpack-editors repo and run nix-shell
command from the repo root directory.
git clone https://github.com/composewell/nixpack-editors
cd nixpack-editors
nix-shell
You can comment out any packages you do not need in packages.nix.
If you want to permanently install the packages in your nix profile:
nix-env -i -f https://github.com/composewell/nixpack-editors/archive/master.tar.gz
Inside the nix shell, run the following command:
nvim
Use ESC :q to quit.
Use ,h for help.
Use :colorscheme morning if you want a light theme.
To customize vim plugins edit the nix/vim/plugins.nix file.
To run VSCodium, the open source version of Microsoft VSCode, run the following command in the nix-shell:
codium
To customize vscode extensions edit the nix/vscodium/extensions.nix file.
To test your own vimrc appending to the existing settings:
vim -c "source ./vimrc"
To completely nuke the existing settings and use your own:
export VIMINIT='source ./vimrc'
vim -u ./vimrc
vim -u NONE -N