nixos-config/modules/vim/default.nix

35 lines
695 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
2023-09-19 01:24:37 +00:00
vim-code-dark
2023-09-15 17:19:18 +00:00
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 "$@"
'')
];
}