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
|
2023-09-20 17:55:22 +00:00
|
|
|
nerdtree-git-plugin
|
2023-09-15 17:19:18 +00:00
|
|
|
vim-autoformat
|
2023-09-19 01:24:37 +00:00
|
|
|
vim-code-dark
|
2023-09-20 17:55:22 +00:00
|
|
|
vim-devicons
|
2023-09-15 17:19:18 +00:00
|
|
|
vim-gitgutter
|
|
|
|
vim-nix
|
|
|
|
vim-startify
|
2023-09-21 04:18:30 +00:00
|
|
|
vim-terraform
|
2023-09-20 17:55:22 +00:00
|
|
|
] ++
|
|
|
|
# skip syntax-highlight on nixos 23.05
|
|
|
|
lib.optional
|
|
|
|
(vim-nerdtree-syntax-highlight.version != "2021-01-11")
|
|
|
|
(vim-nerdtree-syntax-highlight);
|
|
|
|
|
2023-09-15 17:19:18 +00:00
|
|
|
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 "$@"
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
}
|