From dc4a46d6e20b73cd0a9e9747227b73af36a4d560 Mon Sep 17 00:00:00 2001 From: DustVoice Date: Tue, 22 Jun 2021 16:54:13 +0200 Subject: [PATCH] Make some changes --- .gitattributes | 1 + .gitignore | 22 ++++++++++++++++------ coc-settings.json | 3 +++ ginit.vim | 30 +++++++++++++++++++----------- init.vim | 18 +++++++++++++----- 5 files changed, 52 insertions(+), 22 deletions(-) create mode 100644 .gitattributes create mode 100644 coc-settings.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..176a458 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto diff --git a/.gitignore b/.gitignore index ca027c2..425e225 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,16 @@ -.netrwhist -platform.vim -custom.vim -plugged/* -plugged_bak -sessions/* +/* +/*/ +!/.gitignore +!/.gitattributes + +!/.restore-permissions +!/coc-settings.json +!/custom.vim.example +!/ginit.vim +!/init.vim +!/platform.vim.example +!/TODO.txt + +!/colors/ +!/autoload/ +!/spell/ diff --git a/coc-settings.json b/coc-settings.json new file mode 100644 index 0000000..5179e3b --- /dev/null +++ b/coc-settings.json @@ -0,0 +1,3 @@ +{ + "omnisharp.version": "latest" +} diff --git a/ginit.vim b/ginit.vim index 534279b..128aeea 100644 --- a/ginit.vim +++ b/ginit.vim @@ -1,11 +1,19 @@ -set nocompatible - -GuiTabline 0 - -if g:use_font==1 - Guifont! Hack:h16 - "set guifont=Hack:h16 -else - Guifont! Consolas:h14 - "set guifont=Consolas:h14 -endif +set nocompatible + +if exists('g:neovide') + if g:use_font==1 + set guifont=Hack:16 + else + set guifont=Consolas:h14 + endif +else + GuiTabline 0 + + if g:use_font==1 + GuiFont! Hack:h12 + "set guifont=Hack:h16 + else + GuiFont! Consolas:h14 + "set guifont=Consolas:h14 + endif +endif diff --git a/init.vim b/init.vim index 4e67202..d2d0639 100644 --- a/init.vim +++ b/init.vim @@ -472,10 +472,14 @@ endif " Setup F11/S-F11 for fullscreen/maximize toggle " === function! FullScreenToggle() - if g:GuiWindowFullScreen==1 - call GuiWindowFullScreen(0) + if exists('g:neovide') + let g:neovide_fullscreen = !g:neovide_fullscreen else - call GuiWindowFullScreen(1) + if g:GuiWindowFullScreen==1 + call GuiWindowFullScreen(0) + else + call GuiWindowFullScreen(1) + endif endif endfunction @@ -487,8 +491,12 @@ function! MaximizedToggle() endif endfunction -nnoremap :call MaximizedToggle() -nnoremap :call FullScreenToggle() +if exists('g:neovide') + nnoremap :call FullScreenToggle() +else + nnoremap :call MaximizedToggle() + nnoremap :call FullScreenToggle() +endif " === let $NVIM_TUI_ENABLE_TRUE_COLOR=1