Skip to content

Conversation

@obemu
Copy link
Contributor

@obemu obemu commented Dec 19, 2024

This PR adds the command line argument --cmd "let g:is_cppman_active=1" in pager.sh when using vim or nvim as a pager.

This is useful, because commands provided with --cmd are processed before any vimrc file is processed (see manpage for vim/nvim), which means the user can check in their init.lua or init.vim file if the current vim instance has been launched by cppman (by checking the value of is_cppman_active) and can therefore choose to omit certain configurations or abstain from loading some plugins.

@aitjcize aitjcize merged commit ff8a77e into aitjcize:master Dec 20, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants