nixos-config/pkgs/bck-nvim/default.nix

47 lines
895 B
Nix
Raw Normal View History

2024-11-08 03:59:57 +00:00
{
lib,
extraBinPaths ? [ ],
neovim-unwrapped,
vimPlugins,
wrapNeovim,
2024-02-23 05:14:23 +00:00
}:
let
2024-11-08 03:59:57 +00:00
luafiles = lib.concatLines (
map (x: "luafile ${./lua}/${x}") (builtins.attrNames (builtins.readDir ./lua))
2024-02-23 05:14:23 +00:00
);
2024-11-08 03:59:57 +00:00
extraPath = lib.concatLines (map (p: "let $PATH .= ':${p}/bin'") (extraBinPaths));
2024-02-23 05:14:23 +00:00
in
wrapNeovim neovim-unwrapped {
viAlias = true;
vimAlias = true;
configure = {
packages.bck.start = with vimPlugins; [
# cmp
cmp-buffer
cmp-nvim-lsp
cmp-path
cmp_luasnip
luasnip
nvim-cmp
# other
bufferline-nvim
comment-nvim
gitsigns-nvim
indent-blankline-nvim
lualine-nvim
nvim-lspconfig
nvim-tree-lua
nvim-treesitter.withAllGrammars
nvim-web-devicons
project-nvim
telescope-nvim
vim-code-dark
vim-tmux-navigator
];
customRC = extraPath + luafiles;
};
}