Switch to gnvim

This commit is contained in:
Thomas Gideon 2019-09-19 16:54:12 -04:00
parent 4690d05ffa
commit 270e604033
3 changed files with 19 additions and 22 deletions

View file

@ -1,22 +0,0 @@
" to allow specific fonts for specific OSes
source ~/.config/nvim/glocal.vim
set lines=65
set columns=120
set guioptions-=r
set guioptions-=b
set guioptions-=T
set guioptions-=m
" from https://stackoverflow.com/a/51424640
let s:fontsize = 11
function! AdjustFontSize(amount)
let s:fontsize = s:fontsize+a:amount
:execute "GuiFont! DejaVu Sans Mono:h" . s:fontsize
endfunction
noremap <C-ScrollWheelUp> :call AdjustFontSize(1)<CR>
noremap <C-ScrollWheelDown> :call AdjustFontSize(-1)<CR>
inoremap <C-ScrollWheelUp> <Esc>:call AdjustFontSize(1)<CR>a
inoremap <C-ScrollWheelDown> <Esc>:call AdjustFontSize(-1)<CR>a

View file

@ -97,3 +97,20 @@ au CursorHold * checktime
" keep nvim from resetting font back to default from terminal config
set guicursor=
set guioptions-=r
set guioptions-=b
set guioptions-=T
set guioptions-=m
" from https://stackoverflow.com/a/51424640
let s:fontsize = 10
function! AdjustFontSize(amount)
let s:fontsize = s:fontsize+a:amount
:execute "set gfn=DejaVu\\ Sans\\ Mono\\ for\\ Powerline,\\ Regular:h" . s:fontsize
endfunction
noremap <C-Up> :call AdjustFontSize(1)<CR>
noremap <C-Down> :call AdjustFontSize(-1)<CR>
inoremap <C-Up> <Esc>:call AdjustFontSize(1)<CR>a
inoremap <C-Down> <Esc>:call AdjustFontSize(-1)<CR>a

View file

@ -50,6 +50,8 @@ Plug 'Chiel92/vim-autoformat'
Plug 'ncm2/ncm2'
" taskwarrior
Plug 'blindFS/vim-taskwarrior'
" support for lsp in gnvim
Plug 'vhakulinen/gnvim-lsp'
" All of your Plugins must be added before the following line
call plug#end() " required