summaryrefslogtreecommitdiff
path: root/vim/ftplugin
diff options
context:
space:
mode:
authorNick Shipp <nick@shipp.ninja>2017-05-07 09:04:01 -0400
committerNick Shipp <nick@shipp.ninja>2017-05-07 09:04:01 -0400
commitc012f55efda29f09179e921cf148d79deb57616e (patch)
treeff0ad37f22622d51194cab192a2aa4b0106d7ad0 /vim/ftplugin
parent4ca8f6608883d230131f8a9e8b6d6c091c516049 (diff)
Much maturering of vim configs
Diffstat (limited to 'vim/ftplugin')
-rw-r--r--vim/ftplugin/rust.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim
new file mode 100644
index 0000000..8bdfbe5
--- /dev/null
+++ b/vim/ftplugin/rust.vim
@@ -0,0 +1,12 @@
+""
+" Rust config
+" TODO: Move to ftplugin
+"
+au FileType rust nmap <C-]> <Plug>(rust-def)
+au FileType rust nmap g<C-]> <Plug>(rust-def-split)
+au FileType rust nmap g<S-C-]> <Plug>(rust-def-vertical)
+au FileType rust nmap K <Plug>(rust-doc)
+au FileType rust compiler cargo
+au FileType rust set formatprg=rustfmt
+"
+