Seeking maintainers: If you're using this project, you're using it more than me and might want to consider helping out by becoming a maintainer. If you are interested, please reach out by opening a github issue on this project. Cheers!
Easily configure neomake to recognize your PlatformIO project's include path.
- Install using your favorite Vim plugin manager.
- Run
UpdateRemotePlugins
. - Restart Neovim.
call SetupPlatformioEnvironment('/path/to/your/platformio/project/')
If you use vim-localvimrc you can automatically configure vim when you open a file in a project directory by doing two things:
-
Adding an
.lvimrc
file containing the following line in the same level of your project that includes yourplatformio.ini
file :call SetupPlatformioEnvironment(expand('<sfile>:p'))
-
Disabling lvimrc sandboxing by setting the following setting in your
~/.config/nvim/init.vim
:let g:localvimrc_sandbox = 0
Note that if you work on third-party projects, any code in those projects'
.lvimrc
files include could be executed outside the sandbox; if you
disable the sandbox as described above, be sure to carefully examine the
contents of unfamiliar paths when localvimrc asks you whether you'd like
to source a new localvimrc configuration file!