Switch to gnvim
This commit is contained in:
parent
4690d05ffa
commit
270e604033
3 changed files with 19 additions and 22 deletions
22
ginit.vim
22
ginit.vim
|
@ -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
|
|
||||||
|
|
17
init.vim
17
init.vim
|
@ -97,3 +97,20 @@ au CursorHold * checktime
|
||||||
|
|
||||||
" keep nvim from resetting font back to default from terminal config
|
" keep nvim from resetting font back to default from terminal config
|
||||||
set guicursor=
|
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
|
||||||
|
|
2
plug.vim
2
plug.vim
|
@ -50,6 +50,8 @@ Plug 'Chiel92/vim-autoformat'
|
||||||
Plug 'ncm2/ncm2'
|
Plug 'ncm2/ncm2'
|
||||||
" taskwarrior
|
" taskwarrior
|
||||||
Plug 'blindFS/vim-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
|
" All of your Plugins must be added before the following line
|
||||||
call plug#end() " required
|
call plug#end() " required
|
||||||
|
|
Loading…
Reference in a new issue