diff --git a/ginit.vim b/ginit.vim deleted file mode 100644 index 556029e..0000000 --- a/ginit.vim +++ /dev/null @@ -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 :call AdjustFontSize(1) -noremap :call AdjustFontSize(-1) -inoremap :call AdjustFontSize(1)a -inoremap :call AdjustFontSize(-1)a - diff --git a/init.vim b/init.vim index 2ee840e..197a672 100644 --- a/init.vim +++ b/init.vim @@ -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 :call AdjustFontSize(1) +noremap :call AdjustFontSize(-1) +inoremap :call AdjustFontSize(1)a +inoremap :call AdjustFontSize(-1)a diff --git a/plug.vim b/plug.vim index 54ce697..593151c 100644 --- a/plug.vim +++ b/plug.vim @@ -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