New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set this with cmp and lua based config? #31
Comments
you should not use lua require('cmp').setup.buffer({ sources = {{ name = 'vim-dadbod-completion' }} }) |
Thanks for the reply and it works!! |
@kristijanhusak sorry to chime in, but I cant make this work I am using Packer for the package manager and have this -- Sql
use "tpope/vim-dadbod"
use { "kristijanhusak/vim-dadbod-completion" }
use { "kristijanhusak/vim-dadbod-ui" } and this vim.cmd([[
augroup DadbodSql
au!
autocmd FileType sql,mysql,plsql lua require('cmp').setup.buffer({ sources = {{ name = 'vim-dadbod-completion' }} })
augroup END
]])
-- also tried this without vim.cmd
require('cmp').setup.buffer({ sources = {{ name = 'vim-dadbod-completion' }} }) It works on DBUI, but I cant make it work on directly on sql files |
@zer09 did you set |
Yes, but it will only autocomplete if I open the buffer using the But using dbui it works perferctly fine |
I need to check. Can you please open up separate issue for that? |
I created
~/.config/nvim/ftplugin/sql.vim file
and added
" hrsh7th/nvim-cmp
autocmd FileType sql,mysql,plsql lua require('cmp').setup.buffer({ sources = {{ name = 'vim-dadbod-completion' }} })
But it doesn't seem to do anything. Wondering what's the recommended way to add this?
The text was updated successfully, but these errors were encountered: