-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Depends on neovim/neovim##23947
- Loading branch information
Showing
2 changed files
with
173 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
let SessionLoad = 1 | ||
let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1 | ||
let v:this_session=expand("<sfile>:p") | ||
silent only | ||
silent tabonly | ||
cd ~/projects/lua/cokeline | ||
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' | ||
let s:wipebuf = bufnr('%') | ||
endif | ||
let s:shortmess_save = &shortmess | ||
if &shortmess =~ 'A' | ||
set shortmess=aoOA | ||
else | ||
set shortmess=aoO | ||
endif | ||
badd +144 lua/cokeline/hover.lua | ||
badd +89 lua/cokeline/handlers.lua | ||
badd +349 lua/cokeline/buffers.lua | ||
badd +1 lua/cokeline/mappings.lua | ||
argglobal | ||
%argdel | ||
$argadd lua/cokeline/hover.lua | ||
edit lua/cokeline/hover.lua | ||
wincmd t | ||
let s:save_winminheight = &winminheight | ||
let s:save_winminwidth = &winminwidth | ||
set winminheight=0 | ||
set winheight=1 | ||
set winminwidth=0 | ||
set winwidth=1 | ||
argglobal | ||
balt lua/cokeline/mappings.lua | ||
setlocal fdm=manual | ||
setlocal fde=0 | ||
setlocal fmr={{{,}}} | ||
setlocal fdi=# | ||
setlocal fdl=99 | ||
setlocal fml=1 | ||
setlocal fdn=20 | ||
setlocal fen | ||
silent! normal! zE | ||
9,10fold | ||
15,16fold | ||
23,24fold | ||
21,25fold | ||
29,30fold | ||
27,31fold | ||
34,35fold | ||
39,40fold | ||
37,41fold | ||
13,42fold | ||
47,48fold | ||
51,56fold | ||
60,66fold | ||
71,72fold | ||
76,77fold | ||
75,78fold | ||
79,80fold | ||
74,81fold | ||
69,83fold | ||
85,87fold | ||
91,92fold | ||
96,97fold | ||
95,98fold | ||
99,100fold | ||
94,101fold | ||
103,107fold | ||
50,109fold | ||
112,113fold | ||
117,118fold | ||
116,119fold | ||
120,121fold | ||
115,122fold | ||
110,125fold | ||
45,127fold | ||
158,158fold | ||
162,163fold | ||
172,173fold | ||
176,177fold | ||
175,178fold | ||
179,180fold | ||
170,182fold | ||
168,184fold | ||
185,187fold | ||
167,189fold | ||
166,190fold | ||
161,191fold | ||
let &fdl = &fdl | ||
161 | ||
normal! zo | ||
166 | ||
normal! zo | ||
167 | ||
normal! zo | ||
let s:l = 144 - ((16 * winheight(0) + 22) / 45) | ||
if s:l < 1 | let s:l = 1 | endif | ||
keepjumps exe s:l | ||
normal! zt | ||
keepjumps 144 | ||
normal! 07| | ||
tabnext 1 | ||
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal' | ||
silent exe 'bwipe ' . s:wipebuf | ||
endif | ||
unlet! s:wipebuf | ||
set winheight=1 winwidth=20 | ||
let &shortmess = s:shortmess_save | ||
let &winminheight = s:save_winminheight | ||
let &winminwidth = s:save_winminwidth | ||
let s:sx = expand("<sfile>:p:r")."x.vim" | ||
if filereadable(s:sx) | ||
exe "source " . fnameescape(s:sx) | ||
endif | ||
let &g:so = s:so_save | let &g:siso = s:siso_save | ||
nohlsearch | ||
doautoall SessionLoadPost | ||
unlet SessionLoad | ||
" vim: set ft=vim : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters