Skip to content

Commit a84f1e6

Browse files
committed
trying to FIX nvim
1 parent eea55e7 commit a84f1e6

File tree

3 files changed

+33
-8
lines changed

3 files changed

+33
-8
lines changed

.profile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
#!/usr/bin/env bash
2-
# Copyright (C) 2015 Mirko van der Waal <mvdw at airmail dot cc>
3-
# Distributed under terms of the GPL2 license.
42

53
export NIX_SHELL_PRESERVE_PROMPT=1
64
if [ $IN_NIX_SHELL ]; then
75
export PS1='\n\[\033[1;36m\][\[\e]0;nix-shell@\h: \w\a\]nix-shell@\h:\w]\$\[\033[0m\] '
86
fi
97

8+
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
# For the rest of the file:
20+
# Copyright (C) 2015 Mirko van der Waal <mvdw at airmail dot cc>
21+
# Distributed under terms of the GPL2 license.
22+
1023
# Whenever using rxvt-unicode, load the correct color file for it.
1124
[[ -r $HOME/.Xresources && $TERM =~ 'rxvt' ]] && xrdb -all $HOME/.Xresources
1225

.vimrc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
" Maintainer: Mirko van der Waal <mvdw at airmail dot cc>
22
"
3-
4-
filetype plugin indent on
53
syntax on
64

5+
filetype indent off
76
set termencoding=utf-8 encoding=utf8
87
set wmnu wim=list:longest,full wig=*.o,*~,*.pyc,*.tmp title titlestring=%t:%l%r%m
98
set titlelen=24 undofile udir=~/.vim/undo,/tmp ul=1024 ur=1024 ss=5 ls=2 nowrap
10-
set lcs=extends:> nu nuw=1 sts=2 shiftwidth=2 ts=2 isk+=- si sta ai hid
9+
set lcs=extends:> nu nuw=1 isk+=- si sta ai hid
1110
set sc cc=80 spr sb nobk ignorecase hls magic noswapfile et tf lz
1211
set statusline=%{Github(branch,repository)}%L:%l%=%m[%{Filesize()}]
12+
set shiftwidth=2 ts=2 sts=2 expandtab
1313

1414
" set tw=80 " line wrap
1515

@@ -60,3 +60,4 @@ augroup __filtype
6060
au BufRead,BufNewFile *.h setlocal ft=c
6161
augroup END
6262

63+
filetype indent off

configuration.nix

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
sshd.enable = true;
5151
};
5252

53+
# see: https://githubmemory.com/repo/divnix/devos/issues/296
54+
documentation.info.enable = pkgs.lib.mkForce false;
5355
fonts = {
5456
fontconfig.enable = true;
5557
fontDir.enable = true;
@@ -100,23 +102,31 @@
100102
trustedBinaryCaches = [ "http://cache.nixos.org" ];
101103
binaryCaches = [ "http://cache.nixos.org" ];
102104
extraOptions = ''
103-
experimental-features = nix-command flakes
105+
experimental-features = nix-command flakes ca-references
104106
'';
105107
};
106108

107109
programs.neovim = {
108-
enable = true;
110+
enable = false;
109111
defaultEditor = true;
110112
viAlias = true;
111113
vimAlias = true;
112114
configure = {
113-
customRC = builtins.readFile ./.vimrc;
115+
customRC = ''
116+
set asdfkja aklsdjflkasj
117+
askldfjasl
118+
au aklsdjfalskd asjflajsklj
119+
'';
114120
packages.myVimPackage = with pkgs.vimPlugins; {
115121
start = [ fugitive vim-nix ];
116122
};
117123
};
118124
};
119125

126+
environment.shellAliases = {
127+
vi = "nvim";
128+
vim = "nvim";
129+
};
120130
# List packages installed in system profile. To search, run:
121131
# $ nix search wget
122132
environment.systemPackages = with pkgs; [
@@ -147,6 +157,7 @@
147157
kvm
148158
mpv
149159
networkmanager
160+
neovim-unwrapped
150161
nitrogen
151162
nix-bash-completions
152163
ntfs3g

0 commit comments

Comments
 (0)