add options for writing
This commit is contained in:
parent
39b54596e9
commit
a3f3ed0a3f
2 changed files with 10 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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,
|
||||
" },
|
||||
|
|
Loading…
Add table
Reference in a new issue