Mongo client UI plugin for neovim (Work in progress!)
mongodb.nvim.demo.mov
lazy.nvim
{
"donus3/mongo.nvim",
dependencies = {
"ibhagwan/fzf-lua"
},
config = function()
require("mongo").setup()
end
}
# explicitly session name
:Monogo <session-name>
# randomly generate a session name (math.random)
:Monogo
- Support mongodb version < 3.6 and >= 3.6
- Using URI connection
- CRUD queries and aggregate
- Tree-Sitter for document updating and deletion
- Intuitive UI
require("mongo").setup({
---default mongo url show on start up
default_url = "mongodb://localhost:27017",
---execute query on collection selected
find_on_collection_selected = false
})
Keymap | Description |
---|---|
<CR> |
Select/Confirm the context under cursor |
- |
Back to the previous menu |
gx |
Drop the collection under cursor |
gq |
Quit |
Keymap | Description |
---|---|
<CR> |
Execute the query under cursor |
gi |
Insert new query snippet |
gf |
Find the query snippet |
gu |
Update the query snippet |
gd |
Delete the query snippet |
gq |
Quit |
Keymap | Description |
---|---|
d |
Delete the document under cursor |
e |
Update the document under cursor |
- Save session
- Save queries
- export results in json, csv
- dump collection and database
- import collection and database
- export API
MIT License