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
|
" neo formatter
|
||||||
nnoremap <leader>p :Neoformat<CR>
|
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
|
" lsp mappings
|
||||||
imap <silent> <c-p> <Plug>(completion_trigger)
|
imap <silent> <c-p> <Plug>(completion_trigger)
|
||||||
|
|
||||||
|
|
|
@ -92,18 +92,20 @@ let g:tmuxcomplete#trigger = ''
|
||||||
|
|
||||||
function! s:goyo_enter()
|
function! s:goyo_enter()
|
||||||
set noshowcmd
|
set noshowcmd
|
||||||
|
set noshowmode
|
||||||
set scrolloff=999
|
set scrolloff=999
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:goyo_leave()
|
function! s:goyo_leave()
|
||||||
set showcmd
|
set showcmd
|
||||||
|
set showmode
|
||||||
set scrolloff=1
|
set scrolloff=1
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
autocmd! User GoyoEnter nested call <SID>goyo_enter()
|
autocmd! User GoyoEnter nested call <SID>goyo_enter()
|
||||||
autocmd! User GoyoLeave nested call <SID>goyo_leave()
|
autocmd! User GoyoLeave nested call <SID>goyo_leave()
|
||||||
|
|
||||||
let g:goyo_linenr = 0
|
let g:goyo_width = 120
|
||||||
|
|
||||||
" AUTOCOMPLETION
|
" AUTOCOMPLETION
|
||||||
" =========================
|
" =========================
|
||||||
|
@ -143,7 +145,6 @@ let g:languagetool_cmd='/usr/bin/languagetool'
|
||||||
" TREESITTER
|
" TREESITTER
|
||||||
" lua <<EOF
|
" lua <<EOF
|
||||||
" require'nvim-treesitter.configs'.setup {
|
" require'nvim-treesitter.configs'.setup {
|
||||||
" ensure_installed = "maintained",
|
|
||||||
" highlight = {
|
" highlight = {
|
||||||
" enable = true,
|
" enable = true,
|
||||||
" },
|
" },
|
||||||
|
|
Loading…
Add table
Reference in a new issue