mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-26 14:45:29 -08:00
Nickiel12
b6039592e2
Switched way of setting default editor to using the `programs.vim.defaultEditor = true` method
38 lines
796 B
Nix
38 lines
796 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
in
|
|
{
|
|
programs.vim = {
|
|
enable = true;
|
|
plugins = with pkgs.vimPlugins;
|
|
let
|
|
moonfly = pkgs.vimUtils.buildVimPlugin {
|
|
name = "moonfly";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "bluz71";
|
|
repo = "vim-moonfly-colors";
|
|
rev = "d51e3ad78654aa479d59adb81a98f179d595bdee";
|
|
sha256 = "0uHEB8uNQeGpVWuZfyrVAWTyefJMCitTmNpHmKVFOaQ=";
|
|
};
|
|
};
|
|
in [
|
|
vim-airline
|
|
vim-airline-themes
|
|
moonfly
|
|
|
|
coc-rust-analyzer
|
|
coc-nvim
|
|
rust-vim
|
|
|
|
vim-nix
|
|
typescript-vim
|
|
vim-javascript
|
|
];
|
|
|
|
defaultEditor = true;
|
|
extraConfig = builtins.readFile ../rsrcs/.vimrc;
|
|
};
|
|
|
|
}
|