vim-mesonist is a Vim plugin to make working with meson easier.
-
:MesonSetup: Set up a meson project. Any arguments given to:MesonSetupwill directly passed on to the meson command. -
:MesonLocateRootDir: Locates project root directory and echoes it. -
:MesonLinkCompilationDatabase: Create a symbolic link to compilation database (filecompile_commands.json) in the project root directory to work with YouCompleteMe. It ignoresg:mesonist_link_compilation_db.
-
g:mesonist_meson_executabledefines the meson executable to use. Default value ismeson. -
g:mesonist_meson_builddirsets the meson build directory to use. Defaults tobuilddir. -
g:mesonist_link_compilation_dbcreate symbolic link to compilation database in the project root directory during:MesonSetup. -
g:mesonist_c_compilersets the C compiler to use. Same as environment variableCC. -
g:mesonist_cxx_compilersets the C++ compiler to use. Same as environment variableCXX. -
g:mesonist_c_linkersets the C linker to use. Same as environment variableCC_LD. -
g:mesonist_cxx_linkersets the C++ linker to use. Same as environment variableCXX_LD. -
g:mesonist_env_varsset any kind of environment variables to used by meson. The other environment variables set directly take precedence.
Install via your favorite package manager
or use Vim's built-in package support:
mkdir -p ~/.vim/pack/j-carl/start
cd ~/.vim/pack/j-carl/start
git clone https://github.com/j-carl/vim-menonist.git
vim -u NONE -c "helptags vim-mesonist/doc" -c q- Thanks to Junegunn Choi, for vader.vim his awesome testing framework.
Copyright (c) Jens Carl. Distributed under BSD-2-Clause. See LICENSE.