Убрал 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 = {
|
formatters_by_ft = {
|
||||||
lua = { 'stylua' },
|
lua = { 'stylua' },
|
||||||
go = { 'gofmt', 'injected' },
|
go = { 'gofmt', 'injected' },
|
||||||
sql = { 'sqlfluff' },
|
-- 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
|
||||||
|
@ -67,18 +67,18 @@ return {
|
||||||
-- end,
|
-- end,
|
||||||
-- stdin = true,
|
-- stdin = true,
|
||||||
-- },
|
-- },
|
||||||
sqlfluff = {
|
-- sqlfluff = {
|
||||||
command = 'sqlfluff',
|
-- command = 'sqlfluff',
|
||||||
args = {
|
-- args = {
|
||||||
'format',
|
-- 'format',
|
||||||
-- 'fix',
|
-- -- 'fix',
|
||||||
-- '--dialect',
|
-- -- '--dialect',
|
||||||
-- 'postgres',
|
-- -- 'postgres',
|
||||||
-- '--disable-progress-bar',
|
-- -- '--disable-progress-bar',
|
||||||
'-',
|
-- '-',
|
||||||
},
|
-- },
|
||||||
stdin = true,
|
-- stdin = true,
|
||||||
},
|
-- },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -28,6 +28,7 @@ vim.opt.expandtab = true
|
||||||
-- Их параметры конфига для переназначения не работают. Пришлось костыль сделать
|
-- Их параметры конфига для переназначения не работают. Пришлось костыль сделать
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
autocmd FileType yaml setlocal shiftwidth=2 tabstop=2 softtabstop=2 expandtab
|
autocmd FileType yaml setlocal shiftwidth=2 tabstop=2 softtabstop=2 expandtab
|
||||||
|
autocmd BufEnter *.py :setlocal shiftwidth=4 tabstop=4 softtabstop=4 noexpandtab
|
||||||
]]
|
]]
|
||||||
|
|
||||||
-- Комментировать .proto код биндом
|
-- Комментировать .proto код биндом
|
||||||
|
|
Loading…
Add table
Reference in a new issue