Do not use home manager to manage vim

This commit is contained in:
Cyryl Płotnicki 2019-08-24 18:29:29 +01:00
parent d90c72e389
commit 203540cdcf
5 changed files with 47 additions and 38 deletions

View file

@ -1,3 +1,3 @@
source ~/dev/dotfiles/.vimrc.plugins-settings
source ~/dev/dotfiles/.vimrc.settings
source ~/dev/dotfiles/.vimrc.keymap
source /home/cyryl/dev/dotfiles/.vimrc.plugins-settings
source /home/cyryl/dev/dotfiles/.vimrc.settings
source /home/cyryl/dev/dotfiles/.vimrc.keymap

View file

@ -12,6 +12,7 @@ in
./gsconnect.nix
./common-hardware.nix
./common-services.nix
./vim.nix
];
nixpkgs.config = {
@ -27,7 +28,8 @@ in
};
environment.systemPackages = with pkgs; [
wget git gnupg curl tmux python36Packages.glances vim htop atop firefox home-manager alacritty pciutils powertop
wget git gnupg curl tmux python36Packages.glances htop atop firefox home-manager alacritty pciutils powertop
];
i18n.defaultLocale = "en_GB.UTF-8";

View file

@ -35,7 +35,6 @@ in
imports = [
./programs/tmux.nix
./programs/zsh.nix
./programs/vim.nix
./programs/termite.nix
./programs/git.nix
./user-xsession.nix

View file

@ -1,33 +0,0 @@
{ config, pkgs, ... }:
{
programs.vim = {
enable = true;
extraConfig = builtins.readFile ~/dev/dotfiles/.vimrc.nixos;
plugins = [
"vim-gitgutter"
"vim-toml"
"vim-autoformat"
"editorconfig-vim"
"tabular"
"vim-colors-solarized"
"fzf-vim"
"ctrlp-vim"
"vim-nix"
"vim-startify"
"ack-vim"
"vim-markdown"
"rust-vim"
"nerdtree"
"vim-dispatch"
"deoplete-nvim"
"deoplete-go"
"vim-fugitive"
"vim-sensible"
"vim-surround"
"vim-airline"
"vim-airline-themes"
"vim-dirdiff"
"nerdtree-git-plugin"
];
};
}

41
nixos/vim.nix Normal file
View file

@ -0,0 +1,41 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [(
neovim.override {
vimAlias = true;
configure = {
customRC = builtins.readFile /home/cyryl/dev/dotfiles/.vimrc.nixos;
vam.knownPlugins = vimPlugins;
vam.pluginDictionaries = [
{ names = [
"ack-vim"
"ctrlp-vim"
"editorconfig-vim"
"fzf-vim"
"nerdtree"
"nerdtree-git-plugin"
"rust-vim"
"tabular"
"vim-airline"
"vim-airline-themes"
"vim-autoformat"
"vim-colors-solarized"
"vim-dirdiff"
"vim-dispatch"
"vim-fugitive"
"vim-gitgutter"
"vim-markdown"
"vim-nix"
"vim-sensible"
"vim-startify"
"vim-surround"
"vim-toml"
];
}
];
};})
];
}