kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.54k stars 94 forks source link

Can you make the query file .sql extension #121

Open tin-pham opened 2 years ago

tin-pham commented 2 years ago

On the left that is psql client \e, on the right that is query file generated by dadbodui (normal text file) image

psql \e image dadbod UI image

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

walkabout21 commented 1 year ago

I don't necessarily need the extension to be .sql, but setting the filetype to sql would be helpful. I currently set the filetype manually.

kristijanhusak commented 1 year ago

I don't necessarily need the extension to be .sql, but setting the filetype to sql would be helpful. I currently set the filetype manually.

This should already be happening. What filetype do you get ? Try echo &filetype once you open up the query to get value.