Vi Mongo is a TUI application that enables efficient work with MongoDB. This repository contains a Neovim plugin that provides a floating window interface for Vi Mongo.
For more information, visit www.vi-mongo.com or GitHub.
Using vim-plug
Add the following line to your Neovim configuration:
Plug 'kopecmaciej/vi-mongo.nvim'
Then run :PlugInstall
in Neovim.
Using packer.nvim
Add the following to your Neovim configuration:
use {
'kopecmaciej/vi-mongo.nvim',
config = function()
require('vi-mongo').setup()
end
}
Then run :PackerSync
in Neovim.
Using lazy.nvim
Add the following to your Neovim configuration:
{
"kopecmaciej/vi-mongo.nvim",
config = function()
require("vi-mongo").setup()
end,
cmd = { "ViMongo" },
keys = {
{ "<leader>vm", "<cmd>ViMongo<cr>", desc = "ViMongo" }
}
}
Then run :Lazy sync
in Neovim.
After installation, you can open the Vi Mongo window using the command:
:ViMongo
To add a shortcut for opening Vi Mongo, add the following to your Neovim configuration:
vim.api.nvim_set_keymap('n', '<leader>vm', ':ViMongo<CR>', { noremap = true, silent = true })
This will map <leader>vm
to open Vi Mongo in normal mode.
- Neovim (0.5 or later)
vi-mongo
CLI tool installed and available in your PATH (check installation instructions)