# BridgeContext for Neovim
Seamlessly bridge context from your browser into Neovim using the BridgeContext suite.
## Installation
### Using [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
{
"anavvathi/Bridgecontext",
-- Note: If you have this in a monorepo, specify the rtp:
dir = "~/path/to/BridgeContext/neovim-extension", -- for local development
config = function()
require("bridge-context").setup({
-- path = "/path/to/your/BridgeContext/native-host/exchange.json", -- optional override
silent = false
})
end
}
```
## Commands
- `:BridgeContext`: Open a floating window with the current synced context.
- `:BridgeInject`: Inject the current context payload directly at your cursor position.
## How it Works
The Neovim plugin watches the `exchange.json` file generated by the BridgeContext Chrome extension and native host. Whenever you "bridge" a context from your browser, Neovim identifies the change and updates its internal state instantly.