Убрал автоформат json
This commit is contained in:
parent
913d9fcfb3
commit
9c2c3bc71c
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ return {
|
|||
-- Disable "format_on_save lsp_fallback" for languages that don't
|
||||
-- have a well standardized coding style. You can add additional
|
||||
-- languages here or re-enable it for the disabled ones.
|
||||
local disable_filetypes = { c = true, cpp = true }
|
||||
local disable_filetypes = { c = true, cpp = true, json = true } -- Руками можно отформатировать через `<leader>f`
|
||||
local lsp_format_opt
|
||||
if disable_filetypes[vim.bo[bufnr].filetype] then
|
||||
lsp_format_opt = 'never'
|
||||
|
|
Loading…
Add table
Reference in a new issue