mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-01 16:57:55 +00:00
33 lines
671 B
Nix
Executable File
33 lines
671 B
Nix
Executable File
# modules/editors/vim.nix - https://neovim.org
|
|
# (Neo)Vim is love, (Neo)Vim is life.
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
{
|
|
options.modules.editors.neovim = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = mkIf config.modules.editors.neovim.enable {
|
|
my.packages = with pkgs; [
|
|
editorconfig-core-c # Editorconfig is a MUST, you feel me?!
|
|
];
|
|
|
|
my.home = {
|
|
programs.neovim = {
|
|
enable = true;
|
|
withPython3 = true;
|
|
withRuby = true;
|
|
};
|
|
|
|
xdg.configFile."nvim" = {
|
|
source = ../../config/nvim;
|
|
recursive = true;
|
|
};
|
|
};
|
|
};
|
|
}
|