mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.3k stars 186 forks source link

Configuration in LUA #478

Closed jrock2004 closed 3 years ago

jrock2004 commented 3 years ago

I am switching over to use LUA with neovim and having a hard time setting up. What I have below kinda works, just that the header is still MRU instead of Files. Thoughts?

vim.g.startify_list = { {
  type = 'dir',
  header = { 'Files', vim.fn.getcwd()}
}, }
dhruvmanila commented 3 years ago

You need to concatenate the 'Files' and 'cwd'. If you want, you can take a look at my startify config file (lua): https://github.com/dhruvmanila/dotfiles/blob/master/config/nvim/lua/plugin/startify.lua

krzkrzkrz commented 1 year ago

@dhruvmanila Could you paste your config instead. The link you posted doesnt exist anymore

dhruvmanila commented 1 year ago

@krzkrzkrz https://github.com/dhruvmanila/dotfiles/blob/bc282895f4aa686eed4cf02fb4da0ede1bd13408/config/nvim/lua/plugin/startify.lua

Although I've switched to a custom implementation which was inspired by dashboard-nvim.