add options for writing

This commit is contained in:
Jidbo 2021-11-13 11:03:31 +01:00 committed by saibotk
parent 39b54596e9
commit a3f3ed0a3f
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 10 additions and 2 deletions

View file

@ -32,6 +32,13 @@ nnoremap <leader>gg :G<cr>
" neo formatter
nnoremap <leader>p :Neoformat<CR>
" goyo mapping
nnoremap <silent> <leader>w :Goyo<CR>
" spelling
nnoremap <silent> <leader>se :set spell spelllang=en<CR>
nnoremap <silent> <leader>sd :set spell spelllang=de<CR>
" lsp mappings
imap <silent> <c-p> <Plug>(completion_trigger)

View file

@ -92,18 +92,20 @@ let g:tmuxcomplete#trigger = ''
function! s:goyo_enter()
set noshowcmd
set noshowmode
set scrolloff=999
endfunction
function! s:goyo_leave()
set showcmd
set showmode
set scrolloff=1
endfunction
autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()
let g:goyo_linenr = 0
let g:goyo_width = 120
" AUTOCOMPLETION
" =========================
@ -143,7 +145,6 @@ let g:languagetool_cmd='/usr/bin/languagetool'
" TREESITTER
" lua <<EOF
" require'nvim-treesitter.configs'.setup {
" ensure_installed = "maintained",
" highlight = {
" enable = true,
" },