Убрал sqlfluff. Добавил табы в питон
This commit is contained in:
parent
df708c7d47
commit
8c7f054891
2 changed files with 14 additions and 13 deletions
|
@ -41,7 +41,7 @@ return {
|
|||
formatters_by_ft = {
|
||||
lua = { 'stylua' },
|
||||
go = { 'gofmt', 'injected' },
|
||||
sql = { 'sqlfluff' },
|
||||
-- sql = { 'sqlfluff' },
|
||||
-- ['*'] = { 'injected' }, -- enables injected-lang formatting for all filetypes
|
||||
|
||||
-- Conform can also run multiple formatters sequentially
|
||||
|
@ -67,18 +67,18 @@ return {
|
|||
-- end,
|
||||
-- stdin = true,
|
||||
-- },
|
||||
sqlfluff = {
|
||||
command = 'sqlfluff',
|
||||
args = {
|
||||
'format',
|
||||
-- 'fix',
|
||||
-- '--dialect',
|
||||
-- 'postgres',
|
||||
-- '--disable-progress-bar',
|
||||
'-',
|
||||
},
|
||||
stdin = true,
|
||||
},
|
||||
-- sqlfluff = {
|
||||
-- command = 'sqlfluff',
|
||||
-- args = {
|
||||
-- 'format',
|
||||
-- -- 'fix',
|
||||
-- -- '--dialect',
|
||||
-- -- 'postgres',
|
||||
-- -- '--disable-progress-bar',
|
||||
-- '-',
|
||||
-- },
|
||||
-- stdin = true,
|
||||
-- },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -28,6 +28,7 @@ vim.opt.expandtab = true
|
|||
-- Их параметры конфига для переназначения не работают. Пришлось костыль сделать
|
||||
vim.cmd [[
|
||||
autocmd FileType yaml setlocal shiftwidth=2 tabstop=2 softtabstop=2 expandtab
|
||||
autocmd BufEnter *.py :setlocal shiftwidth=4 tabstop=4 softtabstop=4 noexpandtab
|
||||
]]
|
||||
|
||||
-- Комментировать .proto код биндом
|
||||
|
|
Loading…
Add table
Reference in a new issue