diff options
author | tdro <tdro@users.noreply.github.com> | 2020-10-31 03:18:23 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-10-31 03:18:23 -0400 |
commit | 28db46504b19a5f981679a9adf4cc4732baa9e54 (patch) | |
tree | dae571f835fa6be8a486820e2f93bc447b63e60d /.vimrc | |
parent | dac65080e0ac56e6211af93072d6835b22457cf1 (diff) | |
download | dotfiles-28db46504b19a5f981679a9adf4cc4732baa9e54.tar.gz dotfiles-28db46504b19a5f981679a9adf4cc4732baa9e54.tar.bz2 dotfiles-28db46504b19a5f981679a9adf4cc4732baa9e54.zip |
.vimrc: Add nixos option lookups
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -321,8 +321,9 @@ augroup AutoCommands autocmd FileType nix autocmd! BufWritePost <buffer> silent call NixCheck() autocmd FileType rust autocmd! BufWritePost <buffer> silent !notify-send "$(rustfmt % 2>&1 && echo 'rustfmt OK:' %)" - " File type function lookups. + " File type function under cursor lookups. autocmd FileType elixir noremap <buffer> <leader>df :exe ':term ++rows=10 sh -c "echo ''h(' . expand('<cexpr>') . ')'' \| iex"'<cr> + autocmd FileType nix noremap <buffer> <leader>df :exe ':term ++rows=10 nixos-option ' . expand('<cexpr>')<cr> " REPL commands. autocmd FileType go noremap <buffer> <leader>cc :REPL gore<cr> |