Database plugin for neovim
npm install -g neovim- clone this repo into
~/.config/nvim/rplugin/node - run a
npm installin the neovim-db folder - open
nvimand run the:UpdateRemotePluginscommand - create a
~/.nvim-db.jsonfo;e (please check theUsagesection) - restart nvim
:DbRunQueryshortcut suggestion:
" run a query when press F5
nnoremap <F5> :DbRunQuery<CR>set your DB settings in ~/.nvim-db.json:
{
"default": {
"client": "mssql",
"connection": {
"host": "host1",
"user": "user1",
"password": "pw1",
"database": "db1"
}
},
"anotherLabel": {
"client": "mysql",
"connection": {
"host": "host2",
"user": "user2",
"password": "pw2",
"database": "db2"
}
}
}