We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f69c539 commit 6114b21Copy full SHA for 6114b21
lua/sql-formatter/utils.lua
@@ -8,15 +8,15 @@ local M = {}
8
function M.is_sql_buffer(buf)
9
buf = buf or vim.api.nvim_get_current_buf()
10
local filetype = vim.api.nvim_buf_get_option(buf, "filetype")
11
-
+
12
local sql_filetypes = { "sql", "mysql", "plsql", "pgsql" }
13
14
for _, ft in ipairs(sql_filetypes) do
15
if filetype == ft then
16
return true
17
end
18
19
20
return false
21
22
@@ -30,7 +30,7 @@ end
30
function M.get_visual_selection()
31
local start_line = vim.fn.line("'<")
32
local end_line = vim.fn.line("'>")
33
34
return start_line, end_line
35
36
@@ -42,4 +42,5 @@ function M.command_exists(cmd)
42
return result ~= ""
43
44
45
-return M
+return M
46
0 commit comments