-
|
Since the config is stored in the nix store neovide does not see the config. My guess is that wrapRc = false would work, but I was wondering if there is a nicer way. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
With neovide you can set the executable/command to run with neovide Simply point your neovide install at the path or the name of the package that you wish to run within neovide Works regardless of wrapRc. You can install neovide with a simple wrapper script that launches it with the argument that sets this path/command neovide --neovim-bin your_package_nameor neovide = pkgs.writeShellScriptBin "neovide" ''
exec ${pkgs.neovide}/bin/neovide --neovim-bin ${yourpackage}/bin/${yourpackage.nixCats_packageName} "$@"
'';
# put that in your packages list instead of neovideIf you installed via module you wont already have the package available but you can grab the package from the config variable like shown at the end here It will still look for the toml config file in the normal place, and you can use it as normal as you would without nix. but you dont need that, nor will nixCats provision it You can configure neovide in lua. inside lua you can do if vim.g.neovide then
-- your neovide config options
endThere might be a way to set where it looks for the toml one too idk, but if there is, then you can pass that in to your config and set it instead of letting it look in its normal path, up to you. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the detailed response, I got it working! |
Beta Was this translation helpful? Give feedback.
-
|
Just figured I'd come back to this thread to mention some new possibilities for ways to use neovide with nixCats introduced by the new hosting program changes https://nixcats.org/nixCats_format.html#nixCats.flake.outputs.settings.hosts packageDefinitions = {
packagename = { pkgs, name, mkPlugin, ... }: {
categories = { /* your categories you want to enable here */ };
extra = { /* misc stuff you want to pass */ };
settings = {
hosts = {
neovide = {
# Will create a `packagename-neovide` in your path that launches the
# package named `packagename` in this case.
# Also allows you to specify categories in categoryDefinitions for your new neovide host!
enable = true;
path = {
value = "${pkgs.neovide}/bin/neovide";
args = [ "--add-flags" "--neovim-bin ${name}" ];
};
};
};
};
};
}; |
Beta Was this translation helpful? Give feedback.
With neovide you can set the executable/command to run with neovide
Simply point your neovide install at the path or the name of the package that you wish to run within neovide
Works regardless of wrapRc.
You can install neovide with a simple wrapper script that launches it with the argument that sets this path/command
or
If you installed via module you wont already have the package available but you can grab the package from the config variable