Remove old neovim module
I'm now using nixvim, which is very powerful, and I'm already using it to do far more comprehensive things.
This commit is contained in:
parent
6ce57664f4
commit
acfef00f7d
1 changed files with 0 additions and 33 deletions
|
|
@ -1,33 +0,0 @@
|
|||
{ config, lib, pkgs, configFiles, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.myModules.home.neovim = {
|
||||
enable = mkEnableOption "custom neovim configuration";
|
||||
user = mkOption {
|
||||
type = types.str;
|
||||
description = "Username for user-specific config";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf config.myModules.home.neovim.enable (
|
||||
let
|
||||
userConfigPath = "${configFiles}/users/${config.myModules.home.neovim.user}/nvim";
|
||||
sharedConfigPath = "${configFiles}/shared/nvim";
|
||||
|
||||
# Use user-specific config if it exists, otherwise fall back to shared
|
||||
configPath = if builtins.pathExists (configFiles + "/users/${config.myModules.home.neovim.user}/nvim")
|
||||
then userConfigPath
|
||||
else sharedConfigPath;
|
||||
in {
|
||||
programs.neovim.enable = true;
|
||||
|
||||
# Use the correct Home Manager option
|
||||
home.file.".config/nvim" = {
|
||||
source = configPath;
|
||||
recursive = true;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue