work to priv #2
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"rust-analyzer.server.path": "~/.cargo/bin/rust-analyzer",
|
"rust-analyzer.server.path": "~/.cargo/bin/rust-analyzer",
|
||||||
"suggest.acceptSuggestionOnCommitCharacter": true,
|
"suggest.acceptSuggestionOnCommitCharacter": true,
|
||||||
"diagnostic.displayByAle": true
|
"diagnostic.displayByAle": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,9 +104,16 @@ map <Leader>% :split<CR>
|
||||||
" join with <leader>j
|
" join with <leader>j
|
||||||
nnoremap <leader>j :join<CR>
|
nnoremap <leader>j :join<CR>
|
||||||
|
|
||||||
|
" move screen a line up/down with alt U/D
|
||||||
|
nmap <A-u> kzz
|
||||||
|
nmap <A-d> jzz
|
||||||
|
|
||||||
" spell checking -----------------------------------------------------------------------------------
|
" spell checking -----------------------------------------------------------------------------------
|
||||||
set spell spelllang=en
|
set spell spelllang=en
|
||||||
|
|
||||||
|
" set a location
|
||||||
|
set spellfile=~/.config/nvim/spell/en.utf-8.add
|
||||||
|
|
||||||
" go to last or next misspelled word
|
" go to last or next misspelled word
|
||||||
nnoremap zn ]s
|
nnoremap zn ]s
|
||||||
nnoremap zN [s
|
nnoremap zN [s
|
||||||
|
@ -117,8 +124,15 @@ nnoremap ZN [S
|
||||||
|
|
||||||
" mark correct with zg, mark bad with zw, undo with zug/zuw
|
" mark correct with zg, mark bad with zw, undo with zug/zuw
|
||||||
|
|
||||||
" correct with zc, default is z= but that sucks for qwertz keyboards
|
" fancy fzf correct with zc, default is z= but that sucks for qwertz keyboards
|
||||||
nnoremap z<space> z=
|
function! FzfSpellSink(word)
|
||||||
|
exe 'normal! "_ciw'.a:word
|
||||||
|
endfunction
|
||||||
|
function! FzfSpell()
|
||||||
|
let suggestions = spellsuggest(expand("<cword>"))
|
||||||
|
return fzf#run({'source': suggestions, 'sink': function("FzfSpellSink"), 'down': 10 })
|
||||||
|
endfunction
|
||||||
|
nnoremap z<space> :call FzfSpell()<CR>
|
||||||
|
|
||||||
" don't make things written as `something` a typo
|
" don't make things written as `something` a typo
|
||||||
syntax region cBackTickNoSpell start=+`+ end=+`+
|
syntax region cBackTickNoSpell start=+`+ end=+`+
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[user]
|
[user]
|
||||||
email = software@cscherr.de
|
email = Christoph.Scherr@newtec.de
|
||||||
name = PlexSheep
|
name = Christoph J. Scherr
|
||||||
signingkey = software@cscherr.de
|
signingkey = Christoph.Scherr@newtec.de
|
||||||
[credential]
|
[credential]
|
||||||
helper = store --file ~/.git-credentials
|
helper = store --file ~/.git-credentials
|
||||||
[commit]
|
[commit]
|
||||||
|
|
Loading…
Reference in New Issue