Added configs for autocorrect

This commit is contained in:
Nicholas Novak
2022-06-15 21:26:04 -07:00
parent 989e6b2a4e
commit 26861a084d
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -10,3 +10,7 @@ My configuration files for the various tools that I use
sudo pacman -S python-pynvim wl-clipboard rust-analyzer
paru -S google-java-format java-language-server-git
```
```
sudo systemctl start reflector
```
+4
View File
@@ -199,6 +199,10 @@ END
" Enable type inlay hints
autocmd CursorHold,CursorHoldI *.rs :lua require'lsp_extensions'.inlay_hints{ only_current_line = true }
" Press Ctrl+L to correct the previous spelling mistake
" https://castel.dev/post/lecture-notes-1/#correcting-spelling-mistakes-on-the-fly
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
" Rustfmt config
let g:rustfmt_autosave = 1
let g:rustfmt_emit_files = 1