Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically load `lightline' #121

Open
srustamo opened this issue Sep 23, 2021 · 2 comments
Open

Automatically load `lightline' #121

srustamo opened this issue Sep 23, 2021 · 2 comments

Comments

@srustamo
Copy link

:Tmuxline lighttline works OK. Is there a way to autoload this on vim startup, just like airline does?

@srustamo srustamo changed the title Automatically load `lighttline' Automatically load `lightline' Sep 23, 2021
@szczys
Copy link

szczys commented Nov 11, 2023

I couldn't figure out a way to do this. I ended up using the following workaround:

  1. Run commands to set up the tmux line the way you like it (e.g.: :Tmuxline vim_statusline_3 full)
  2. Export the settings: :TmuxlineSnapshot ~/.config/nvim/lua/core/plugin_config/tmuxline.vim
  3. Edit your tmux configuration: vim ~/.tmux.conf
  4. Source the file in your tmux config: source ~/.config/nvim/lua/core/plugin_config/tmuxline.vim

@maestromac
Copy link

My solution is the following

autocmd VimEnter,BufEnter * Tmuxline lighttline

I rather not save to a file because I have a different night theme controlled by vimrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants