vim-dadbod
format.nvim
Our great sponsors
vim-dadbod | format.nvim | |
---|---|---|
6 | 5 | |
3,188 | 225 | |
- | - | |
5.9 | 4.3 | |
17 days ago | about 2 years ago | |
Vim Script | Lua | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vim-dadbod
-
Show HN: PostgreSQL Sessions in Vim
I used dadbod[0] and the following in my vimrc[1] to do a similar thing, only I haven't make the shortcuts for sending a block yet.
Looks nice though, maybe I'll try it out sometime!
[0] https://github.com/tpope/vim-dadbod
[1] au FileType sql nmap d :%:DB g:db
-
How to use Vim or Neovim for SQL?
Maybe that helps with autocompletion in dadbod: ```lua Plug 'https://github.com/tpope/vim-dadbod.git' Plug 'https://github.com/kristijanhusak/vim-dadbod-ui.git' Plug 'https://github.com/kristijanhusak/vim-dadbod-completion.git'
-
Do you give use Vim for SQL. It took me a while to setup this. sqls - lang server (auto complete), dadbodUI (view table, execute and save query), prettier-sql (format code on save).
I used dadbodUI for viewing table, before you install dadbodUI, remember to install dadbod https://github.com/tpope/vim-dadbod
-
Gobang – Cross-platform TUI database management tool written in Rust
There is a plugin for connecting to DBs [0] and others built upon it, a UI [1] and even completion [2].
format.nvim
-
Do you give use Vim for SQL. It took me a while to setup this. sqls - lang server (auto complete), dadbodUI (view table, execute and save query), prettier-sql (format code on save).
To format on save you need to install format https://github.com/lukas-reineke/format.nvim
-
Out of the box lint and format settings?
For formatting, written in lua, there is formatter.nvim and format.nvim. These are also great plugin but are low level, where you still need you to provide some bindings for the linter/formatter of your choice.
-
Which autoformatting plugin do you recommend?
https://github.com/lukas-reineke/format.nvim/issues/9#issuecomment-837584501
I'm switching from coc.nvim to the built-in LSP, and I used to let coc.nvim do the autoformatting. I've found three plugins to do autoformatting: format.nvim, formatter.nvim and neoformat. The first two are written in Lua and look very similar. Which one would you recommend?
-
[asking] any good formatter for all languages lua
format.nvim is really nice. It's flexible to configure and async
What are some alternatives?
formatter.nvim
efm-langserver - General purpose Language Server
vim-autoformat - Provide easy code formatting in Vim by integrating existing code formatters.
nvim-treesitter-context - Show code context
neoformat - :sparkles: A (Neo)vim plugin for formatting code.
termdbms - A TUI for viewing and editing database files.
sqls - SQL language server written in Go.
vim-dadbod-completion - Database autocompletion powered by https://github.com/tpope/vim-dadbod
nvim-lint - An asynchronous linter plugin for Neovim complementary to the built-in Language Server Protocol support.
cmp-under-comparator - nvim-cmp comparator function for completion items that start with one or more underlines
NeoVimLua