mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-21 11:14:42 +02:00
(feat) use neoformat as the defalt format option (#715)
This commit is contained in:
parent
9d399314d4
commit
71c5cb4f0b
18 changed files with 26 additions and 312 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue