diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-15 23:26:50 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-15 23:26:50 +0100 |
commit | 855f4e4f0f22b35641f13614e46b9ab7f6818188 (patch) | |
tree | 9a776e07429c16e1df68f4b04c125c46185eed16 /.config/nvim/lua/startify | |
parent | 8577c3b7cba714551d3537f3337ee2490bd20106 (diff) |
Migration to lua
Diffstat (limited to '.config/nvim/lua/startify')
-rw-r--r-- | .config/nvim/lua/startify/init.lua | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.config/nvim/lua/startify/init.lua b/.config/nvim/lua/startify/init.lua new file mode 100644 index 0000000..9b1488b --- /dev/null +++ b/.config/nvim/lua/startify/init.lua @@ -0,0 +1,41 @@ +vim.g.startify_custom_header = { + ' ##############..... ############## ', + ' ##############......############## ', + ' ##########..........########## ', + ' ##########........########## ', + ' ##########.......########## ', + ' ##########.....##########.. ', + ' ##########....##########..... ', + ' ..##########..##########......... ', + ' ....##########.#########............. ', + ' ..################JJJ............ ', + ' ################............. ', + ' ##############.JJJ.JJJJJJJJJJ ', + ' ############...JJ...JJ..JJ JJ ', + ' ##########....JJ...JJ..JJ JJ ', + ' ########......JJJ..JJJ JJJ JJJ ', + ' ###### ......... ', + ' ..... ', + ' . ', + } + +vim.g.webdevicons_enable_startify = 1 +vim.g.startify_enable_special = 0 +vim.g.startify_session_dir = '~/.config/nvim/session' +vim.g.startify_session_autoload = 1 +vim.g.startify_session_delete_buffers = 1 +vim.g.startify_change_to_vcs_root = 1 +vim.g.startify_fortune_use_unicode = 1 +vim.g.startify_session_persistence = 1 +vim.g.startify_session_dir = '~/.config/nvim/session' + + +vim.api.nvim_exec('let startify_lists = [ { \'type\': \'files\', \'header\': [\' Files\'] }, { \'type\': \'sessions\', \'header\': [\' Sessions\'] }, { \'type\': \'bookmarks\', \'header\': [\' Bookmarks\'] }, ]',true) + +vim.api.nvim_exec('let startify_bookmarks = [ { \'b\': \'~/Blog\' }, { \'i\': \'~/.config/nvim/init.vim\' }, { \'z\': \'~/.zshrc\' }]', true) + +vim.cmd([[ +function! StartifyEntryFormat() + return 'WebDevIconsGetFileTypeSymbol(absolute_path) ." ". entry_path' +endfunction +]]) |