vim-mesonist is a Vim plugin to make working with meson easier.
-
:MesonSetup
: Set up a meson project. Any arguments given to:MesonSetup
will 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_executable
defines the meson executable to use. Default value ismeson
. -
g:mesonist_meson_builddir
sets the meson build directory to use. Defaults tobuilddir
. -
g:mesonist_link_compilation_db
create symbolic link to compilation database in the project root directory during:MesonSetup
. -
g:mesonist_c_compiler
sets the C compiler to use. Same as environment variableCC
. -
g:mesonist_cxx_compiler
sets the C++ compiler to use. Same as environment variableCXX
. -
g:mesonist_c_linker
sets the C linker to use. Same as environment variableCC_LD
. -
g:mesonist_cxx_linker
sets the C++ linker to use. Same as environment variableCXX_LD
. -
g:mesonist_env_vars
set 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.