nicks-nix-config/modules/vim.nix
Nickiel12 b6039592e2 refactor: removed uneeded env sets for vim
Switched way of setting default editor to using the `programs.vim.defaultEditor = true` method
2023-01-14 16:03:15 -08:00

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;
};
}