1
0
mirror of https://github.com/kmein/niveum synced 2026-03-23 05:11:08 +01:00

feat: make obsidian-vim and neovim bearable

This commit is contained in:
2023-07-09 23:26:49 +02:00
parent 074e229d5f
commit 24f838370d
7 changed files with 50 additions and 37 deletions

View File

@@ -1,17 +1,29 @@
{
neovim,
vimPlugins,
vault ? "~/cloud/syncthing/obsidian/",
obsidiantVaultDirectory ? "~/cloud/syncthing/obsidian/",
...
}:
neovim.override {
configure = {
customRC = ''
let g:vimwiki_list = [{'path': '${vault}',
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
];
};
}