delete sqlfluff
This commit is contained in:
parent
98d7f13de3
commit
351b2ca472
4 changed files with 4 additions and 36 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -263,11 +263,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs2": {
|
"nixpkgs2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747542820,
|
"lastModified": 1750134718,
|
||||||
"narHash": "sha256-GaOZntlJ6gPPbbkTLjbd8BMWaDYafhuuYRNrxCGnPJw=",
|
"narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "292fa7d4f6519c074f0a50394dbbe69859bb6043",
|
"rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -198,7 +198,6 @@
|
||||||
# SQL
|
# SQL
|
||||||
sqls # SQL LSP
|
sqls # SQL LSP
|
||||||
postgres-lsp # Postgres SQL
|
postgres-lsp # Postgres SQL
|
||||||
sqlfluff # SQL linter
|
|
||||||
# sql-formatter # SQL formatter
|
# sql-formatter # SQL formatter
|
||||||
sqlite
|
sqlite
|
||||||
dbeaver-bin
|
dbeaver-bin
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,6 @@ return {
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { 'stylua' },
|
lua = { 'stylua' },
|
||||||
go = { 'gofmt', 'injected' },
|
go = { 'gofmt', 'injected' },
|
||||||
sql = { 'sqlfluff' },
|
|
||||||
-- ['*'] = { 'injected' }, -- enables injected-lang formatting for all filetypes
|
-- ['*'] = { 'injected' }, -- enables injected-lang formatting for all filetypes
|
||||||
|
|
||||||
-- Conform can also run multiple formatters sequentially
|
-- Conform can also run multiple formatters sequentially
|
||||||
|
|
@ -48,36 +47,7 @@ return {
|
||||||
-- You can use 'stop_after_first' to run the first available formatter from the list
|
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||||
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||||
},
|
},
|
||||||
formatters = {
|
formatters = {},
|
||||||
-- sql_formatter = {
|
|
||||||
-- -- prepend_args = { "-c", vim.fn.expand("~/.config/sql_formatter.json"),
|
|
||||||
-- args = function()
|
|
||||||
-- -- Создаём временный JSON-файл конфигурации
|
|
||||||
-- local config_path = vim.fn.tempname() .. ".json"
|
|
||||||
-- local config_content = vim.fn.json_encode({
|
|
||||||
-- tabWidth = 4,
|
|
||||||
-- })
|
|
||||||
-- local file = io.open(config_path, "w")
|
|
||||||
-- file:write(config_content)
|
|
||||||
-- file:close()
|
|
||||||
-- -- Возвращаем аргументы для форматтера с указанием конфигурационного файла
|
|
||||||
-- return { "-c", config_path }
|
|
||||||
-- end,
|
|
||||||
-- stdin = true,
|
|
||||||
-- },
|
|
||||||
sqlfluff = {
|
|
||||||
command = 'sqlfluff',
|
|
||||||
args = {
|
|
||||||
'format',
|
|
||||||
-- 'fix',
|
|
||||||
-- '--dialect',
|
|
||||||
-- 'postgres',
|
|
||||||
-- '--disable-progress-bar',
|
|
||||||
'-',
|
|
||||||
},
|
|
||||||
stdin = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ return {
|
||||||
local lint = require 'lint'
|
local lint = require 'lint'
|
||||||
lint.linters_by_ft = {
|
lint.linters_by_ft = {
|
||||||
-- markdown = { 'markdownlint' },
|
-- markdown = { 'markdownlint' },
|
||||||
-- sql = { 'sqlfluff' },
|
|
||||||
-- go = { 'golangcilint' },
|
-- go = { 'golangcilint' },
|
||||||
-- proto = { 'buf_lint' }, -- Крашит
|
-- proto = { 'buf_lint' }, -- Крашит
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue