mhinz / vim-startify

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

`getcwd()` on Startify screen shows wrong location #501

Closed rashil2000 closed 3 years ago

rashil2000 commented 3 years ago
let g:startify_lists = [
  \ { 'type': 'sessions',  'header': ['   Sessions']       },
  \ { 'type': 'dir',       'header': ['   Current Directory '. getcwd()] },
  \ { 'type': 'files',     'header': ['   Files']            },
  \ ]

asciicast

Initially it shows correct directory, but when I cd into some other directory, it still shows the old one. Whereas manually running getcwd() shows the correct updated location.

rashil2000 commented 3 years ago

Sorry, I don't think this is fixable, as the header string is hardcoded in the vimrc