style: auto-format
This commit is contained in:
parent
d443c729a9
commit
94e81693d9
1 changed files with 7 additions and 4 deletions
|
@ -6,9 +6,13 @@ local on_attach = function(client, bufnr)
|
|||
end
|
||||
|
||||
local function format_buffer()
|
||||
vim.lsp.buf.format({ timeout_ms = 3000, async = false, filter = function(formatter)
|
||||
return formatter.name ~= "tsserver" and formatter.name ~= "volar"
|
||||
end })
|
||||
vim.lsp.buf.format({
|
||||
timeout_ms = 3000,
|
||||
async = false,
|
||||
filter = function(formatter)
|
||||
return formatter.name ~= "tsserver" and formatter.name ~= "volar"
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
local telescope = require("telescope.builtin")
|
||||
|
@ -131,7 +135,6 @@ null_ls.setup({
|
|||
null_ls.builtins.diagnostics.eslint_d,
|
||||
null_ls.builtins.diagnostics.tsc,
|
||||
},
|
||||
|
||||
on_attach = on_attach,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue