mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
101 lines
2.6 KiB
Nix
101 lines
2.6 KiB
Nix
{
|
|
neovim,
|
|
vimPlugins,
|
|
fetchFromGitHub,
|
|
vimUtils,
|
|
niveumPackages,
|
|
writeText,
|
|
stylixColors ? null,
|
|
colorscheme ? null,
|
|
lib,
|
|
...
|
|
}: (neovim.override {
|
|
configure = {
|
|
customRC = ''
|
|
source ${../lib/vim/shared.vim}
|
|
source ${../lib/vim/init.vim}
|
|
let g:snippet_directory = '${vimPlugins.friendly-snippets}'
|
|
luafile ${../lib/vim/init.lua}
|
|
'' + lib.optionalString (stylixColors != null) (with stylixColors.withHashtag; ''
|
|
luafile ${writeText "colors.lua" ''
|
|
require('base16-colorscheme').setup({
|
|
base00 = '${base00}', base01 = '${base01}', base02 = '${base02}', base03 = '${base03}',
|
|
base04 = '${base04}', base05 = '${base05}', base06 = '${base06}', base07 = '${base07}',
|
|
base08 = '${base08}', base09 = '${base09}', base0A = '${base0A}', base0B = '${base0B}',
|
|
base0C = '${base0C}', base0D = '${base0D}', base0E = '${base0E}', base0F = '${base0F}'
|
|
})
|
|
''}
|
|
'') + lib.optionalString (colorscheme != null) ''
|
|
colorscheme ${colorscheme}
|
|
'';
|
|
packages.nvim = with vimPlugins; {
|
|
start = [
|
|
base16-nvim
|
|
nvim-cmp
|
|
cmp-buffer
|
|
cmp-path
|
|
cmp-nvim-lsp
|
|
cmp-cmdline
|
|
luasnip
|
|
|
|
editorconfig-vim
|
|
|
|
copilot-vim
|
|
|
|
goyo
|
|
limelight-vim
|
|
niveumPackages.vimPlugins-mdwa-nvim
|
|
niveumPackages.vimPlugins-vim-ernest
|
|
|
|
fzf-vim
|
|
fzfWrapper
|
|
supertab
|
|
undotree
|
|
tabular
|
|
# vimwiki
|
|
niveumPackages.vimPlugins-vim-colors-paramount
|
|
nvim-lspconfig
|
|
vim-commentary
|
|
vim-css-color
|
|
vim-eunuch
|
|
niveumPackages.vimPlugins-vim-fetch
|
|
vim-fugitive
|
|
vim-gitgutter
|
|
vim-repeat
|
|
vim-sensible
|
|
vim-surround
|
|
(vimUtils.buildVimPlugin rec {
|
|
pname = "vim-dim";
|
|
version = "1.1.0";
|
|
name = "${pname}-${version}";
|
|
src = fetchFromGitHub {
|
|
owner = "jeffkreeftmeijer";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-lyTZUgqUEEJRrzGo1FD8/t8KBioPrtB3MmGvPeEVI/g=";
|
|
};
|
|
})
|
|
];
|
|
opt = [
|
|
csv
|
|
dhall-vim
|
|
elm-vim
|
|
emmet-vim
|
|
haskell-vim
|
|
niveumPackages.vimPlugins-icalendar-vim
|
|
niveumPackages.vimPlugins-jq-vim
|
|
rust-vim
|
|
typescript-vim
|
|
vim-javascript
|
|
vim-ledger
|
|
vim-nix
|
|
vimtex
|
|
vim-pandoc
|
|
vim-pandoc-syntax
|
|
niveumPackages.vimPlugins-vim-256noir
|
|
niveumPackages.vimPlugins-typst-vim
|
|
];
|
|
};
|
|
};
|
|
})
|