Skip to content

paulocesar/neovim-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neovim-db

Database plugin for neovim

Screenshot

neovim-db screenshot

Install

  • npm install -g neovim
  • clone this repo into ~/.config/nvim/rplugin/node
  • run a npm install in the neovim-db folder
  • open nvim and run the :UpdateRemotePlugins command
  • create a ~/.nvim-db.json fo;e (please check the Usage section)
  • restart nvim

Usage

:DbRunQuery

shortcut 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"
        }
    }
}

About

Database plugin for neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published