diff options
author | Yigit Sever | 2023-08-18 23:42:39 +0300 |
---|---|---|
committer | Yigit Sever | 2023-08-18 23:42:39 +0300 |
commit | 387e08c52d9752bc839c71119f140ba8435c3d70 (patch) | |
tree | 3bb20c0e58ccf1e65ced4cfdfb6459e226a24672 /.config/nvim/lua/functions.lua | |
parent | 14c14cfcc9aeb4bada6d2429162ded2917f26a94 (diff) | |
download | dotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.tar.gz dotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.tar.bz2 dotfiles-387e08c52d9752bc839c71119f140ba8435c3d70.zip |
nvim: switch to lazy.nvim
revert this as whole, if you miss the good old days
Diffstat (limited to '.config/nvim/lua/functions.lua')
-rw-r--r-- | .config/nvim/lua/functions.lua | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/.config/nvim/lua/functions.lua b/.config/nvim/lua/functions.lua deleted file mode 100644 index daee597..0000000 --- a/.config/nvim/lua/functions.lua +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | -- ┌──────────────────────────┐ | ||
2 | -- │▗▀▖ ▐ ▗ │ | ||
3 | -- │▐ ▌ ▌▛▀▖▞▀▖▜▀ ▄ ▞▀▖▛▀▖▞▀▘│ | ||
4 | -- │▜▀ ▌ ▌▌ ▌▌ ▖▐ ▖▐ ▌ ▌▌ ▌▝▀▖│ | ||
5 | -- │▐ ▝▀▘▘ ▘▝▀ ▀ ▀▘▝▀ ▘ ▘▀▀ │ | ||
6 | -- └──────────────────────────┘ | ||
7 | -- 2021-10-10 21:50 WIP, I don't know how to integrate these functions to init.lua and honestly, everything is a nvim_command or something anyway | ||
8 | |||
9 | local random = math.random | ||
10 | |||
11 | local function random_filename() | ||
12 | uuid = '' | ||
13 | for i=0,6 do | ||
14 | uuid = uuid .. (string.format('%x', random(0, 0xf))) | ||
15 | end | ||
16 | return uuid | ||
17 | end | ||
18 | |||
19 | function create_note() | ||
20 | nvim_command("e! " .. nvim_call_function('fnameescape', '~/nextcloud/personal_wiki/text/box/' .. random_filename() .. ".wiki")) | ||
21 | local text = "= up =\n\n= down =\n\n= keywords =\n\n" | ||
22 | nvim_command("put! " .. text) | ||
23 | nvim_command("normal gg") | ||
24 | end | ||