kndndrj / nvim-dbee

Interactive database client for neovim
GNU General Public License v3.0
606 stars 39 forks source link

[Feature] Set filetypes #100

Closed ReubenM closed 2 months ago

ReubenM commented 2 months ago

Need the scratch pad to have it's filetype set to "sql" to allow for treesitter / LSP functionality. Right now it's unset. Would also be nice if the utility windows set some sort of custom filetype. Plugins often allow ignoring windows by filetype / buftype to avoid clutter where their functionality is not needed.

kndndrj commented 2 months ago

98 adds "dbee" as filetype for utility buffers.

SQL was already set as filetype, but removed, since we also have nosql databases. For notes, this can be addressed by either new buffer_options setting in the mentioned PR or (prefferably) using the comment inside note files. Like this:


-- vim: set ft=sql

--... some sql...