nixos-config/modules/vim/default.nix

34 lines
673 B
Nix
Raw Normal View History

2023-09-15 17:19:18 +00:00
{ config, lib, pkgs, ... }:
{
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
defaultEditor = true;
configure = {
packages.sconfig.start = with pkgs.vimPlugins; [
airline
bufferline-nvim
2023-09-18 15:32:19 +00:00
coc-nvim
coc-tsserver
2023-09-15 17:19:18 +00:00
nerdtree
vim-autoformat
vim-gitgutter
vim-nix
vim-startify
];
customRC = ''
source ${./init.vim}
2023-09-16 23:08:35 +00:00
luafile ${./init.lua}
2023-09-15 17:19:18 +00:00
'';
};
};
environment.systemPackages = with pkgs; [
nodePackages.prettier
(writeShellScriptBin "black" ''
exec ${pkgs.python3.pkgs.black}/bin/black "$@"
'')
];
}