From 28db46504b19a5f981679a9adf4cc4732baa9e54 Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 31 Oct 2020 03:18:23 -0400 Subject: .vimrc: Add nixos option lookups --- .vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 92b70bb..bc50bef 100644 --- a/.vimrc +++ b/.vimrc @@ -321,8 +321,9 @@ augroup AutoCommands autocmd FileType nix autocmd! BufWritePost silent call NixCheck() autocmd FileType rust autocmd! BufWritePost silent !notify-send "$(rustfmt % 2>&1 && echo 'rustfmt OK:' %)" - " File type function lookups. + " File type function under cursor lookups. autocmd FileType elixir noremap df :exe ':term ++rows=10 sh -c "echo ''h(' . expand('') . ')'' \| iex"' + autocmd FileType nix noremap df :exe ':term ++rows=10 nixos-option ' . expand('') " REPL commands. autocmd FileType go noremap cc :REPL gore -- cgit v1.2.3