nixos-config/nixos/system/desktop/home-manager/spacevim.nix

41 lines
1 KiB
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ lib, pkgs, ... }: {
2021-11-01 09:20:42 +01:00
environment.systemPackages =
let
spacevimRepo = pkgs.fetchgit {
url = "https://github.com/SpaceVim/SpaceVim.git";
rev = "9b354e05b4716b645ba6366e1265a5048a0c23d5";
sha256 = "1mn28hf857kp0jmbgd89cf5mk4dg53jcbqqrbr9zi3b854sa9ads";
};
2019-10-24 02:20:38 +02:00
2021-11-01 09:20:42 +01:00
vimRc = pkgs.writeText "vimrc" ''
" search/grep case insensitive
:set ignorecase
2019-10-24 02:20:38 +02:00
2021-11-01 09:20:42 +01:00
" tabs should always be 2 spaces
set et ts=2 sts=2 sw=2
2019-10-24 02:20:38 +02:00
2021-11-01 09:20:42 +01:00
" show Trailing Whitespaces
:set list listchars=tab:»·,trail:
2019-10-24 02:20:38 +02:00
2021-11-01 09:20:42 +01:00
" start spacevim
source ${spacevimRepo}/init.vim
2019-10-24 02:20:38 +02:00
2021-11-01 09:20:42 +01:00
" configure command cross
"":hi CursorLine cterm=NONE ctermbg=0 guibg=#073642
"":hi CursorColumn cterm=NONE ctermbg=0 guibg=#073642
""set cursorline
""set cursorcolumn
2019-10-24 02:20:38 +02:00
2021-11-01 09:20:42 +01:00
" disable noisy indentLine
let g:indentLine_enabled = 0
'';
in
[
2019-10-24 02:20:38 +02:00
2021-11-01 09:20:42 +01:00
# vim
(pkgs.writers.writeDashBin "spacevim" ''
exec ${pkgs.neovim}/bin/nvim -u ${vimRc} "$@"
'')
];
2019-10-24 02:20:38 +02:00
}