1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/packages/vim-kmein/default.nix

97 lines
2.4 KiB
Nix
Raw Normal View History

{
neovim,
vimPlugins,
fetchFromGitHub,
vimUtils,
2024-12-13 13:42:39 +01:00
writeText,
stylixColors ? null,
colorscheme ? null,
lib,
...
}: (neovim.override {
configure = {
vimAlias = true;
viAlias = true;
customRC = ''
2025-12-25 14:06:43 +01:00
source ${./shared.vim}
source ${./init.vim}
2023-08-02 10:20:03 +02:00
let g:snippet_directory = '${vimPlugins.friendly-snippets}'
2025-12-25 14:06:43 +01:00
luafile ${./init.lua}
2024-12-13 13:42:39 +01:00
'' + 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 = [
2024-12-13 13:42:39 +01:00
base16-nvim
2023-07-04 21:44:32 +02:00
nvim-cmp
cmp-buffer
cmp-path
cmp-nvim-lsp
cmp-cmdline
luasnip
2023-07-04 21:44:32 +02:00
editorconfig-vim
2025-07-21 18:54:30 +02:00
copilot-vim
fzf-vim
fzfWrapper
supertab
undotree
tabular
# vimwiki
vimPlugins.vim-colors-paramount
nvim-lspconfig
vim-commentary
vim-css-color
vim-eunuch
vimPlugins.vim-fetch
vim-fugitive
vim-gitgutter
vim-repeat
vim-sensible
vim-surround
(let version = "1.1.0"; pname = "vim-dim"; in vimUtils.buildVimPlugin {
pname = "vim-dim";
version = version;
src = fetchFromGitHub {
owner = "jeffkreeftmeijer";
repo = pname;
rev = version;
sha256 = "sha256-lyTZUgqUEEJRrzGo1FD8/t8KBioPrtB3MmGvPeEVI/g=";
};
})
];
opt = [
csv
2023-10-06 10:50:16 +02:00
dhall-vim
elm-vim
emmet-vim
2025-12-04 15:09:37 +01:00
vim-elixir
haskell-vim
vimPlugins.icalendar-vim
vimPlugins.jq-vim
rust-vim
typescript-vim
vim-javascript
vim-ledger
vim-nix
vimtex
vim-pandoc
vim-pandoc-syntax
vimPlugins.vim-256noir
vimPlugins.typst-vim
];
};
};
})