Revert "nixos/profiles/base: install vim w/nix-syntax plugin"
Adding custom plugins causes the `vim` command to be a wrapper script running `vim -u ...`, which makes it not load the default ~/.vimrc. (This is analogous to #177375 about neovim.) As of Vim 9, the syntax-highlighting portion of the nix plugin is upstream; the full plugin is only needed for indentation etc. (see alsoe261eb152b
). So, using regular pkgs.vim works around this behavior/bug and causes any ~/.vimrc to get loaded, without regressing the syntax highlighting support that motivated the change being reverted here. This reverts commit0b5a0cbc69
.
This commit is contained in:
parent
824c683094
commit
82978a85c6
@ -19,13 +19,7 @@
|
||||
pkgs.cryptsetup # needed for dm-crypt volumes
|
||||
|
||||
# Some text editors.
|
||||
(pkgs.vim.customize {
|
||||
name = "vim";
|
||||
vimrcConfig.packages.default = {
|
||||
start = [ pkgs.vimPlugins.vim-nix ];
|
||||
};
|
||||
vimrcConfig.customRC = "syntax on";
|
||||
})
|
||||
pkgs.vim
|
||||
|
||||
# Some networking tools.
|
||||
pkgs.fuse
|
||||
|
Loading…
Reference in New Issue
Block a user