Load your vim project local configurations safely, for vim and neovim. Written with ♥ in TypeScript and Deno (denops.vim).
This is a combination of my projectcmd.vim and projectcmd.nvim plugins with the aim to unify both plugins to support both vim and neovim.
- Setup configurations on a per-project basis
- Write your configurations in a vimscript, lua or json file
- Run only on user permission - when a config file is found inside a project, the user will get to decide whether to run those configurations or not
- deno v1.28 and up
- denops.vim v4 and up
- Vim 9.0.0472 and up (
:version
) - Neovim 0.8.0 and up (
:version
)
You must have deno installed for this plugin to work on your machine
Below are examples on installing the plugin with a plugin manager or utilizing vim packages.
Plug 'vim-denops/denops.vim'
Plug 'creativenull/projectlocal.vim'
" Or use with tag (optional)
" Plug 'creativenull/projectlocal.vim', { 'tag': 'v1.*' }
use {
'creativenull/projectlocal.vim',
tag = 'v1.*', -- optional
requires = { 'vim-denops/denops.vim' },
}
{
'creativenull/projectlocal.vim',
version = 'v1.x.x', -- optional
dependencies = { 'vim-denops/denops.vim' }
}
git clone --depth 1 --branch v1.0.0 https://github.com/creativenull/projectlocal.vim ~/.vim/pack/creativenull/start/projectlocal.vim
git clone --depth 1 --branch v1.0.0 https://github.com/creativenull/projectlocal.vim ~/.local/share/nvim/site/pack/creativenull/start/projectlocal.vim
Check the How to use section in the Wiki page.
Read why I created this plugin in the Motivation wiki page.
The documentation can be found over at docs/projectlocal.txt and via vim/nvim after installation with
:help projectlocal
.
For a JSON config file check :help projectlocal-json-config
.
Make sure you have Deno installed. If you encounter a bug or have an issue, you can make PR with your reasoning. But I would recommend you create an Issue first before making a PR to expand more on the issue you're having.