Skip to content

Commit c077a8a

Browse files
committed
Bye2022 함수로 크리스마스 트리를 그리자
1 parent 5f9b62d commit c077a8a

2 files changed

Lines changed: 40 additions & 4 deletions

File tree

nvim/config/set-bye2022.vim

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
"** bye2022
2+
3+
function! Bye2022()
4+
Startify
5+
let l:msg = [
6+
\ " Bye2022",
7+
\ " 🌟" ,
8+
\ " ***",
9+
\ " *****",
10+
\ " *******",
11+
\ " *********",
12+
\ " ***********",
13+
\ " *************",
14+
\ " ***************",
15+
\ " *****************",
16+
\ " *******************",
17+
\ " *********************",
18+
\ " ***********************",
19+
\ " NeoVim ",
20+
\ " Lua ",
21+
\ " Vim "
22+
\ ]
23+
lua require('plenary.reload').reload_module('popup')
24+
lua vim.popup = require('popup')
25+
26+
lua function _G.popup_2022(text)
27+
\ vim.popup.create(text, {
28+
\ line = 3,
29+
\ col = 30,
30+
\ minwidth = 20,
31+
\ highlight = 'PopupColor1',
32+
\ border = {},
33+
\ time = 2500,
34+
\ })
35+
\ end
36+
call v:lua.popup_2022(l:msg)
37+
endfunction
38+

nvim/init.vim

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ call plug#begin('~/.vim/plugged')
109109
Plug 'nvim-lua/plenary.nvim'
110110
Plug 'nvim-telescope/telescope.nvim'
111111
PlugFile 'set-telescope.vim'
112+
Plug 'nvim-lua/popup.nvim'
113+
PlugFile 'set-bye2022.vim'
112114

113115
Plug 'laher/fuzzymenu.vim'
114116
PlugFile 'set-fuzzymenu.vim'
@@ -444,10 +446,6 @@ for include_file in uniq(sort(globpath(&rtp, 'vim-include/*.vim', 0, 1)))
444446
execute "source " . include_file
445447
endfor
446448

447-
function! Bye2022()
448-
echom "Bye 2022"
449-
endfunction
450-
451449
augroup vimcon_2022_12_16
452450
au VimEnter * call Bye2022()
453451
augroup END

0 commit comments

Comments
 (0)