Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Rust Autocomplete #155

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aklitzke
Copy link

@aklitzke aklitzke commented May 8, 2020

Please use the following structure when proposing changes to our shared Vim configuration and make sure to complete the checklist at the end.

What

Adds a plugin for rust complete support and maps Control-Space to initiate the autocomplete

Why

Adding a feature! Our team uses Rust a lot and would like to see support improved

@@ -238,6 +238,10 @@ let g:vim_markdown_folding_disabled = 1
let g:go_fmt_command = "goimports"
let g:go_highlight_trailing_whitespace_error = 0

" Set Rust autocomplete trigger to control-space
inoremap <C-@> <C-x><C-o>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you wanted to limit this to rust files, you could probably do something like:

autocmd FileType rust inoremap <C-@> <C-x><C-o>

(Like the java specific stuff, https://github.com/braintreeps/vim_dotfiles/blob/master/vimrc#L271).

I do get that c-x c-o isn't rust specific, and I have no hard feelings that it should be limited to rust files. Just raising it as a possibility.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooo I like this. I think it is worth incorporating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants