(feat) use neoformat as the defalt format option (#715)

This commit is contained in:
Rafael 2021-07-05 20:01:19 +00:00 committed by GitHub
parent 9d399314d4
commit 71c5cb4f0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 26 additions and 312 deletions

View file

@ -34,40 +34,5 @@ require("lspconfig").tsserver.setup {
}),
},
}
require("lsp.ts-fmt-lint").setup()
if O.lang.tsserver.autoformat then
require("lv-utils").define_augroups {
_javascript_autoformat = {
{
"BufWritePre",
"*.js",
"lua vim.lsp.buf.formatting_sync(nil, 1000)",
},
},
_javascriptreact_autoformat = {
{
"BufWritePre",
"*.jsx",
"lua vim.lsp.buf.formatting_sync(nil, 1000)",
},
},
_typescript_autoformat = {
{
"BufWritePre",
"*.ts",
"lua vim.lsp.buf.formatting_sync(nil, 1000)",
},
},
_typescriptreact_autoformat = {
{
"BufWritePre",
"*.tsx",
"lua vim.lsp.buf.formatting_sync(nil, 1000)",
},
},
}
end
vim.cmd "setl ts=2 sw=2"