continue refactor, home modules are actual modules and remove some useless files
This commit is contained in:
37
homeConfigs/modules/vim.nix
Normal file
37
homeConfigs/modules/vim.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{config, lib, pkgs, ...}:
|
||||
|
||||
{
|
||||
options.mods.vim.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "install and configure vim";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.vim.enable {
|
||||
home.packages = with pkgs; [
|
||||
clang-tools
|
||||
neovim
|
||||
nixd
|
||||
nodejs_23
|
||||
];
|
||||
|
||||
home.file = {
|
||||
".config/nvim/init.vim".source = ../dotfiles/config/nvim/init.vim;
|
||||
".vimrc".source = ../dotfiles/vimrc;
|
||||
|
||||
#install plug.vim
|
||||
".local/share/nvim/site/autoload/plug.vim".source = "${builtins.fetchGit {
|
||||
url = "https://github.com/junegunn/vim-plug";
|
||||
rev = "d80f495fabff8446972b8695ba251ca636a047b0";
|
||||
ref = "master";
|
||||
}}/plug.vim";
|
||||
|
||||
#install stdheader 42
|
||||
".config/nvim/plugin/stdheader.vim".source = "${builtins.fetchGit {
|
||||
url = "https://github.com/42Paris/42header";
|
||||
rev = "71e6a4df6d72ae87a080282bf45bb993da6146b2";
|
||||
ref = "master";
|
||||
}}/plugin/stdheader.vim";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user