Added configs for autocorrect
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user