From 2fe7aec1f1c0c4bfd3abf06e5d9ac9ba599588de Mon Sep 17 00:00:00 2001 From: mark Date: Sat, 14 Oct 2023 08:25:52 -0700 Subject: [PATCH] Added vim.nix --- vim.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 vim.nix diff --git a/vim.nix b/vim.nix new file mode 100644 index 0000000..0409e73 --- /dev/null +++ b/vim.nix @@ -0,0 +1,33 @@ +{ config, pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + ((vim_configurable.override { }).customize { + name = "vim"; + # Install plugins for example for syntax highlighting of nix files + vimrcConfig.packages.myplugins = with pkgs.vimPlugins; { + start = [ + vim-nix + vim-lastplace + vim-gitgutter + nerdtree + #vim-hexHighlight missing + vim-pencil + #vim-wordchipper missing + vim-fish + ]; + opt = []; + }; + vimrcConfig.customRC = let + vimrc = import ( + builtins.fetchGit { + url = "https://git.betalupi.com/Mark/vim.git"; + ref = "master"; + } + /default.nix + ); + in ( + builtins.readFile (vimrc + /vimrc) + ); + }) + ]; +} \ No newline at end of file