mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-16 23:34:42 +04:00
33 lines
724 B
Nix
33 lines
724 B
Nix
{ pkgs
|
|
, lib
|
|
, rootPath
|
|
, ...
|
|
}:
|
|
let
|
|
fromGitHub = rev: repo: pkgs.vimUtils.buildVimPlugin {
|
|
pname = "${lib.strings.sanitizeDerivationName repo}";
|
|
version = rev;
|
|
src = builtins.fetchGit {
|
|
url = "https://github.com/${repo}.git";
|
|
rev = rev;
|
|
};
|
|
};
|
|
nvimConfig = builtins.readFile (rootPath + "/home/.config/nvim/base.vim");
|
|
in
|
|
{
|
|
enable = true;
|
|
defaultEditor = true;
|
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
nvim-treesitter.withAllGrammars
|
|
nvim-autopairs
|
|
nerdtree
|
|
tokyonight-nvim
|
|
barbar-nvim
|
|
feline-nvim
|
|
(fromGitHub "d63c811337b2f75de52f16efee176695f31e7fbc" "timakro/vim-yadi")
|
|
(fromGitHub "aafa5c187a15701a7299a392b907ec15d9a7075f" "nvim-tree/nvim-web-devicons")
|
|
];
|
|
|
|
extraConfig = nvimConfig;
|
|
}
|