Replies: 3 comments 1 reply
-
Nix is not available for windows yet, you could use NixOS-WSL to have your configuration, also nix can export your config to a docker container using nixos-generators and maybe it will be more interesting. I don't know how you have your configuration, but personally what this guy did in his config is genius, he gave me the idea of being able to build each application in the Unfortunately I am only proposing ideas, but this is what I want to do in my config precisely because of a similar problem. |
Beta Was this translation helpful? Give feedback.
-
I don't have a lot more to add on top of @SergioRibera's answer. |
Beta Was this translation helpful? Give feedback.
-
Hi, I started using nixvim recently and have a similar situation. In case anyone finds this post in the future here's how I went about it. Foreword: This is NOT ideal, and will be a pain in the ass to maintain, BUT it allows you to keep nixvim as your main thing on your main machine and provides a way to make it work on Windows. Step 1: Choose a package managerSince windows doesn't have nix available we need to use a different package manager to get our plugins, I went with lazy, just because it was what I was using until switching to nixvim. But similar approach should work with any other package manager. Step 2: Setup lazy.nvimI followed the steps here: https://lazy.folke.io/installation which essentially ends up with a very basic return {
} You should have a working nvim now. Step 3: Copy init.lua from your machineCopy the init.lua nixvim generated in your machine to some place inside the config folder, e.g. require("config.lazy")
require("config.nixvim") Step 4: Install pluginsThis is the boring part, open nvim, it will complain about a plugin not being installed, add it to the return {
{ "nvim-tree/nvim-web-devicons" },
{ "nvim-mini/mini.icons" },
{ "nvim-mini/mini.base16" },
...
-- some stuff has dependencies:
{ "kevinhwang91/nvim-ufo", dependencies = 'kevinhwang91/promise-async' },
{ "nvim-neotest/neotest",
dependencies = {
"nvim-neotest/nvim-nio",
"nvim-lua/plenary.nvim",
"antoinemadec/FixCursorHold.nvim",
"nvim-treesitter/nvim-treesitter"
}
},
...
} Step 5: LSGHaven't gotten to this yet, but LSGs will be a PitA to solve, probably the best idea here is to have a dedicated file for Mason so you can install the required stuff, and again leave the configuration to nixvim. Hope this helps someone. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
so here is my problem:
On all my personal systems i run nixos wiht nixvim as my main (and only) editor.
At work i HAVE to work on Windows 10 due to some enterprice software that only works in windows.
I would realy like to be able to still use Nvim on that windows machine, but i would like to avoid the work of having to maintain two configs.
thus the questions is:
is there a elegant (and preverable easy) way of extracting the compleat config, with plugins from the nixvim config to install it on a windows machine?
Beta Was this translation helpful? Give feedback.
All reactions