Skip to content

Vim plugin to make working with meson easy as a breeze.

License

Notifications You must be signed in to change notification settings

j-carl/vim-mesonist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-mesonist

j-carl

vim-mesonist is a Vim plugin to make working with meson easier.

Usage

Commands

  • :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 (file compile_commands.json) in the project root directory to work with YouCompleteMe. It ignores g:mesonist_link_compilation_db.

Variables

  • g:mesonist_meson_executable defines the meson executable to use. Default value is meson.

  • g:mesonist_meson_builddir sets the meson build directory to use. Defaults to builddir.

  • 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 variable CC.

  • g:mesonist_cxx_compiler sets the C++ compiler to use. Same as environment variable CXX.

  • g:mesonist_c_linker sets the C linker to use. Same as environment variable CC_LD.

  • g:mesonist_cxx_linker sets the C++ linker to use. Same as environment variable CXX_LD.

  • g:mesonist_env_vars set any kind of environment variables to used by meson. The other environment variables set directly take precedence.

Installation

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

Acknowledgements

License

Copyright (c) Jens Carl. Distributed under BSD-2-Clause. See LICENSE.

About

Vim plugin to make working with meson easy as a breeze.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages