Skip to content

Commit

Permalink
move some zettel stuff over
Browse files Browse the repository at this point in the history
  • Loading branch information
idrisr committed Dec 13, 2024
1 parent 3f837dd commit 8e43ed0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions nixos-modules/nixvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ in {
outline-nvim
nvim-lilypond-suite
kmonad-vim
pkgs.zettel
];

extraConfigVim = concatFiles [ ./vimrc ];
Expand Down
11 changes: 11 additions & 0 deletions nixos-modules/nixvim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,14 @@ nnoremap <leader>T ggI<cr><cr><esc>ggI---<esc>otitle: <c-r>%<esc>xxxo---<esc>jj
let g:vimtex_compiler_latexmk_engines = { '_': '-lualatex' }

nnoremap <leader>gt :set operatorfunc=GrepOperator<cr>g@i[
command! -bang -nargs=* ContentsOfLinks call
\ fzf#vim#grep('rg --replace ' . "'$1' " . '--ignore-case --only-matching --no-filename "\[\[(.+?)\]\]" '
\ . shellescape(expand('%:p'))
\ . '| sort -ur'
\ . '| awk ' . "'" . '{print $0".md"}' . "'"
\ . '| tr "\n" "\0" '
\ . '| xargs -0 rg --column --ignore-case --line-number --no-heading ' . shellescape(<q-args>) . ' {}',
\ 1,
\ fzf#vim#with_preview( {'options': '--exact'} ),
\ <bang>0)

0 comments on commit 8e43ed0

Please sign in to comment.