mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
30 lines
681 B
Nix
30 lines
681 B
Nix
{
|
|
neovim,
|
|
vimPlugins,
|
|
obsidiantVaultDirectory ? "~/cloud/syncthing/obsidian/",
|
|
...
|
|
}:
|
|
neovim.override {
|
|
configure = {
|
|
customRC = ''
|
|
source ${../lib/vim/shared.vim}
|
|
|
|
cd ${obsidiantVaultDirectory}
|
|
|
|
let g:vimwiki_list = [{'path': '${obsidiantVaultDirectory}',
|
|
\ 'syntax': 'markdown', 'ext': '.md'}]
|
|
|
|
let NERDTreeSortOrder = ['[[-timestamp]]']
|
|
|
|
" Start NERDTree and put the cursor back in the other window.
|
|
autocmd VimEnter * NERDTree ${obsidiantVaultDirectory} | wincmd p
|
|
'';
|
|
packages.nvim.start = [
|
|
vimPlugins.vimwiki
|
|
vimPlugins.nerdtree
|
|
vimPlugins.fzf-vim
|
|
vimPlugins.fzfWrapper
|
|
];
|
|
};
|
|
}
|