nix-dev-home icon indicating copy to clipboard operation
nix-dev-home copied to clipboard

Add a flake app for running our neovim config

Open srid opened this issue 1 year ago • 2 comments

nix run github:juspay/nix-dev-home#neovim should run neovim with the config in this repo, without depending on any of user's dotfiles or local $HOME cache.

cf. https://old.reddit.com/r/NixOS/comments/1aulb75/easy_neovim_with_configuration_and_runnable_with/

srid avatar Feb 21 '24 12:02 srid

Mic92 has a runnable nvim config: https://github.com/Mic92/dotfiles?tab=readme-ov-file#use-my-nvim-configuration-as-a-standalone-without-installing-dotfiles

shivaraj-bh avatar Mar 20 '24 12:03 shivaraj-bh

It's not generic enough.

https://github.com/Mic92/dotfiles/blob/b2ff14454465c10d00c4239eea0785583ddf9a35/home-manager/modules/neovim/nvim-standalone.nix#L3-L30

We want something that works with our nixvim configuration.

srid avatar Mar 20 '24 12:03 srid

https://github.com/niksingh710/nvix?tab=readme-ov-file#quick-run

srid avatar Sep 11 '24 20:09 srid

@srid

I have fixed this in these 2 commits.

Check them out, and if everything seems fine, then I will create an MR.

nix run github:niksingh710/nix-dev-home#neovim
  • Switched nixvim config from home -> standalone
  • Moved the neovim.nix config to pkgs dir. Representing package set.
  • Added the same package in home/packages.nix to make sure that when home is built, then package is there.

niksingh710 avatar Sep 12 '24 00:09 niksingh710

@niksingh710 I think that approach is generally in the right direction. But can we continue to use the home-manager module anyway? Your change basically removes this config:

https://github.com/nix-community/nixvim/blob/11c133e89e4090c43445a2c3b5af2322831d7219/wrappers/hm.nix#L43-L58

Anyway, open a PR - we can continue the discussion there. I'd also like to consider testing the "disabling" neovim feature when initializing this repo as template using https://omnix.page/om/init.html

srid avatar Sep 12 '24 00:09 srid